forked from M-Labs/nac3
core: allow clippy changes
This commit is contained in:
parent
04897ec8d4
commit
ba79cfe39f
|
@ -619,7 +619,7 @@ impl<'ctx, 'a> CodeGenContext<'ctx, 'a> {
|
||||||
let exn_id = self.resolver.get_string_id(name);
|
let exn_id = self.resolver.get_string_id(name);
|
||||||
let exn_id = exn_id_model.constant(self.ctx, exn_id as u64);
|
let exn_id = exn_id_model.constant(self.ctx, exn_id as u64);
|
||||||
|
|
||||||
self.raise_exn_impl(generator, exn_id, msg, params, loc)
|
self.raise_exn_impl(generator, exn_id, msg, params, loc);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn make_assert<G: CodeGenerator + ?Sized>(
|
pub fn make_assert<G: CodeGenerator + ?Sized>(
|
||||||
|
|
|
@ -7,6 +7,7 @@ use super::util::get_sized_dependent_function_name;
|
||||||
/// It is always [`Int32`].
|
/// It is always [`Int32`].
|
||||||
type ErrorId = Int32;
|
type ErrorId = Int32;
|
||||||
|
|
||||||
|
#[allow(clippy::struct_field_names)]
|
||||||
pub struct ErrorIdsFields {
|
pub struct ErrorIdsFields {
|
||||||
pub index_error: Field<NIntModel<ErrorId>>,
|
pub index_error: Field<NIntModel<ErrorId>>,
|
||||||
pub value_error: Field<NIntModel<ErrorId>>,
|
pub value_error: Field<NIntModel<ErrorId>>,
|
||||||
|
|
|
@ -19,6 +19,7 @@ impl<'ctx, 'a> FunctionBuilder<'ctx, 'a> {
|
||||||
|
|
||||||
// NOTE: `_name` is for self-documentation
|
// NOTE: `_name` is for self-documentation
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
#[allow(clippy::needless_pass_by_value)]
|
||||||
pub fn arg<M: Model<'ctx>>(mut self, _name: &'static str, arg: Instance<'ctx, M>) -> Self {
|
pub fn arg<M: Model<'ctx>>(mut self, _name: &'static str, arg: Instance<'ctx, M>) -> Self {
|
||||||
self.arguments.push((
|
self.arguments.push((
|
||||||
arg.model.get_type(self.ctx.ctx).as_basic_type_enum().into(),
|
arg.model.get_type(self.ctx.ctx).as_basic_type_enum().into(),
|
||||||
|
|
Loading…
Reference in New Issue