remove redundant imports
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
This commit is contained in:
parent
8cd8d31369
commit
40ae34194c
283 changed files with 140 additions and 510 deletions
|
@ -1,6 +1,6 @@
|
|||
use proc_macro2::{self, Ident};
|
||||
use proc_macro2::Ident;
|
||||
use quote::quote;
|
||||
use syn::{self, parse_quote};
|
||||
use syn::parse_quote;
|
||||
|
||||
struct Attributes {
|
||||
ignore: bool,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use quote::quote;
|
||||
use syn::{self, parse_quote};
|
||||
use syn::parse_quote;
|
||||
|
||||
pub fn lift_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::TokenStream {
|
||||
s.add_bounds(synstructure::AddBounds::Generics);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue