We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b232247 commit d9ecd3dCopy full SHA for d9ecd3d
1 file changed
rust/macros/module.rs
@@ -148,12 +148,12 @@ fn try_simple_param_val(
148
param_type: &str,
149
) -> Box<dyn Fn(&mut token_stream::IntoIter) -> Option<String>> {
150
match param_type {
151
- "bool" => Box::new(|param_it| try_ident(param_it)),
+ "bool" => Box::new(try_ident),
152
"str" => Box::new(|param_it| {
153
try_byte_string(param_it)
154
.map(|s| format!("kernel::module_param::StringParam::Ref(b\"{}\")", s))
155
}),
156
- _ => Box::new(|param_it| try_literal(param_it)),
+ _ => Box::new(try_literal),
157
}
158
159
0 commit comments