We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
then_some
1 parent 4d4b60a commit 75218cfCopy full SHA for 75218cf
esp-hal-procmacros/src/lib.rs
@@ -225,7 +225,7 @@ pub fn interrupt(args: TokenStream, input: TokenStream) -> TokenStream {
225
};
226
227
let context_call =
228
- (f.sig.inputs.len() == 1).then_some(Ident::new("context", proc_macro2::Span::call_site()));
+ (f.sig.inputs.len() == 1).then(|| Ident::new("context", proc_macro2::Span::call_site()));
229
230
quote!(
231
#(#cfgs)*
0 commit comments