-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔥 zd,zm,zx: Remove redundant imports
Otherwise clippy complains about it: ```rust error: the item `syn` is imported redundantly --> zvariant_derive/src/lib.rs:14:11 | 14 | use syn::{self, DeriveInput}; | ^^^^ the item `syn` is already defined here | = note: `-D unused-imports` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_imports)]` error: the item `syn` is imported redundantly --> zvariant_derive/src/type.rs:4:5 | 4 | self, spanned::Spanned, Attribute, Data, DataEnum, DeriveInput, Error, Fields, Generics, Ident, | ^^^^ the item `syn` is already defined here error: the item `syn` is imported redundantly --> zvariant_derive/src/value.rs:4:5 | 4 | self, spanned::Spanned, Attribute, Data, DataEnum, DeriveInput, Error, Expr, Fields, Generics, | ^^^^ the item `syn` is already defined here Compiling aho-corasick v1.1.2 Compiling memoffset v0.9.0 Checking utf8parse v0.2.1 error: could not compile `zvariant_derive` (lib) due to 3 previous errors warning: build failed, waiting for other jobs to finish... Error: Process completed with exit code 101. ```
- Loading branch information
Showing
6 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ use std::{ | |
error::Error, | ||
fs::{File, OpenOptions}, | ||
io::Write, | ||
result::Result, | ||
}; | ||
|
||
use clap::Parser; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters