Skip to content

Commit 745e750

Browse files
committed
Do not unnecessarily take references
1 parent 232c814 commit 745e750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

macros/src/item_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn process(input: ItemImpl) -> TokenStream {
2222
(Some(bang), _, _) => quote_spanned! {
2323
bang.span() => compile_error!("#[cast_to] is not for !Trait impl");
2424
},
25-
(None, path, _) => generate_caster(&self_ty, &path),
25+
(None, path, _) => generate_caster(self_ty, path),
2626
},
2727
};
2828

0 commit comments

Comments
 (0)