mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1868301 - Fix clippy warnings in xpcom_macros/src/lib.rs. r=xpcom-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D195768
This commit is contained in:
parent
3b2204cef8
commit
2f77eb7933
@ -197,7 +197,7 @@ impl Interface {
|
||||
Ok(methods) => Ok(methods),
|
||||
Err(reason) => Err(syn::Error::new(
|
||||
Span::call_site(),
|
||||
&format!(
|
||||
format!(
|
||||
"Interface {} cannot be implemented in rust \
|
||||
because {} is not supported yet",
|
||||
self.name, reason
|
||||
@ -358,7 +358,7 @@ fn gen_inner_vtable(real: &ItemStruct, iface: &Interface) -> Result<TokenStream,
|
||||
let turbofish = ty_generics.as_turbofish();
|
||||
let vtable_init = iface
|
||||
.methods()?
|
||||
.into_iter()
|
||||
.iter()
|
||||
.map(|method| {
|
||||
let name = format_ident!("{}", method.name);
|
||||
quote! { #name : #name #turbofish, }
|
||||
|
Loading…
x
Reference in New Issue
Block a user