Skip to content

Commit

Permalink
Fix for MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
oxalica committed Feb 16, 2023
1 parent a52f1c0 commit c62be47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ fn expand(
errors: &mut Vec<Error>,
) {
let mut emit_err =
|span: Span, msg: &str| errors.push(Error::new(span, format!("#[async_ffi] {msg}")));
|span: Span, msg: &str| errors.push(Error::new(span, format!("#[async_ffi] {}", msg)));

let async_span = if let Some(tok) = sig.asyncness.take() {
tok.span
Expand Down Expand Up @@ -242,7 +242,7 @@ fn expand(
}
pat_ident.ident.clone()
}
_ => Ident::new(&format!("__param{i}"), pat_ty.span()),
_ => Ident::new(&format!("__param{}", i), pat_ty.span()),
};
let old_pat = mem::replace(
&mut *pat_ty.pat,
Expand Down

0 comments on commit c62be47

Please sign in to comment.