Skip to content

Commit

Permalink
Merge pull request #29 from shahn/too_many_arguments
Browse files Browse the repository at this point in the history
Allow the too_many_arguments clippy lint
  • Loading branch information
6d7a authored Jul 29, 2024
2 parents ef06d5f + e293579 commit 5254591
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rasn-compiler-tests/src/helpers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ macro_rules! e2e_pdu {
.unwrap()
.generated
.replace(|c: char| c.is_whitespace(), "")
.replace("#[allow(non_camel_case_types,non_snake_case,non_upper_case_globals,unused)]pubmodtest_module{externcratealloc;usecore::borrow::Borrow;uselazy_static::lazy_static;userasn::prelude::*;", ""),
.replace("#[allow(non_camel_case_types,non_snake_case,non_upper_case_globals,unused,clippy::too_many_arguments)]pubmodtest_module{externcratealloc;usecore::borrow::Borrow;uselazy_static::lazy_static;userasn::prelude::*;", ""),
format!("{}}}", $expected)
.to_string()
.replace(|c: char| c.is_whitespace(), ""),
Expand All @@ -37,7 +37,7 @@ macro_rules! e2e_pdu {
.unwrap()
.generated
.replace(|c: char| c.is_whitespace(), "")
.replace("#[allow(non_camel_case_types,non_snake_case,non_upper_case_globals,unused)]pubmodtest_module{externcratealloc;usecore::borrow::Borrow;uselazy_static::lazy_static;userasn::prelude::*;", ""),
.replace("#[allow(non_camel_case_types,non_snake_case,non_upper_case_globals,unused,clippy::too_many_arguments)]pubmodtest_module{externcratealloc;usecore::borrow::Borrow;uselazy_static::lazy_static;userasn::prelude::*;", ""),
format!("{}}}", $expected)
.to_string()
.replace(|c: char| c.is_whitespace(), ""),
Expand Down
3 changes: 2 additions & 1 deletion rasn-compiler/src/generator/rasn/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ impl Backend for Rasn {
});
Ok(GeneratedModule {
generated: Some(quote! {
#[allow(non_camel_case_types, non_snake_case, non_upper_case_globals, unused)]
#[allow(non_camel_case_types, non_snake_case, non_upper_case_globals, unused,
clippy::too_many_arguments,)]
pub mod #name {
extern crate alloc;

Expand Down
2 changes: 1 addition & 1 deletion rasn-compiler/src/lexer/information_object_class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ pub fn object_set(input: &str) -> IResult<&str, ObjectSet> {
into(information_object),
into(skip_ws_and_comments(identifier)),
))),
)
),
))),
))))(input)
}
Expand Down

0 comments on commit 5254591

Please sign in to comment.