Skip to content

Commit 4fc85b1

Browse files
committed
syn: refactor to take Path & Ident by ref in DataType::derive
1 parent 6055f38 commit 4fc85b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syn/src/data.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ impl From<syn::VisRestricted> for Scope {
227227
impl DataType {
228228
pub fn derive<D: DeriveInner>(
229229
&self,
230-
trait_crate: Path,
231-
trait_name: Ident,
230+
trait_crate: &Path,
231+
trait_name: &Ident,
232232
attr: &D,
233233
) -> syn::Result<TokenStream2> {
234234
let (impl_generics, ty_generics, where_clause) = self.generics.split_for_impl();

0 commit comments

Comments
 (0)