1
0
forked from M-Labs/nac3

core: allow clippy changes

This commit is contained in:
lyken 2024-07-26 15:38:23 +08:00
parent 04897ec8d4
commit ba79cfe39f
3 changed files with 3 additions and 1 deletions

View File

@ -619,7 +619,7 @@ impl<'ctx, 'a> CodeGenContext<'ctx, 'a> {
let exn_id = self.resolver.get_string_id(name);
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>(

View File

@ -7,6 +7,7 @@ use super::util::get_sized_dependent_function_name;
/// It is always [`Int32`].
type ErrorId = Int32;
#[allow(clippy::struct_field_names)]
pub struct ErrorIdsFields {
pub index_error: Field<NIntModel<ErrorId>>,
pub value_error: Field<NIntModel<ErrorId>>,

View File

@ -19,6 +19,7 @@ impl<'ctx, 'a> FunctionBuilder<'ctx, 'a> {
// NOTE: `_name` is for self-documentation
#[must_use]
#[allow(clippy::needless_pass_by_value)]
pub fn arg<M: Model<'ctx>>(mut self, _name: &'static str, arg: Instance<'ctx, M>) -> Self {
self.arguments.push((
arg.model.get_type(self.ctx.ctx).as_basic_type_enum().into(),