Skip to content
Myr

Remove unused Punctuated import

Before adoption: this commit came in with the history the project adopted, so no landing records it.

warning: unused import: `syn::punctuated::Punctuated` --> serde_derive/src/internals/receiver.rs:5:5 | 5 | use syn::punctuated::Punctuated; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default Left by the previous commit. - let segments = mem::replace(&mut path.segments, Punctuated::new()); + let segments = mem::take(&mut path.segments);

authored by David Tolnay · committed by David Tolnay · parent 1c96013 · Browse files · 1 file+0 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−1 removed

  • other:+0 added−1 removed

1 file+0 added−1 removed

modified:serde_derive/src/internals/receiver.rs-1 removed
1use crate::internals::respan::respan;2use proc_macro2::Span;3use quote::ToTokens;4use std::mem;5use syn::punctuated::Punctuated;5use syn::{6 parse_quote, Data, DeriveInput, Expr, ExprPath, GenericArgument, GenericParam, Generics, Macro,7 Path, PathArguments, QSelf, ReturnType, Token, Type, TypeParamBound, TypePath, WherePredicate,8};
285 unmodified lines