Skip to content

Commit

Permalink
🔥 zb: Remove some redundant imports
Browse files Browse the repository at this point in the history
  • Loading branch information
zeenix committed Feb 23, 2024
1 parent b95d900 commit 3b3aedb
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 10 deletions.
4 changes: 1 addition & 3 deletions zbus/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1318,9 +1318,7 @@ impl<'a> From<crate::blocking::Proxy<'a>> for Proxy<'a> {
#[cfg(test)]
mod tests {
use super::*;
use crate::{
dbus_interface, dbus_proxy, utils::block_on, AsyncDrop, ConnectionBuilder, SignalContext,
};
use crate::{dbus_interface, dbus_proxy, utils::block_on, ConnectionBuilder, SignalContext};
use futures_util::StreamExt;
use ntest::timeout;
use test_log::test;
Expand Down
2 changes: 1 addition & 1 deletion zbus_macros/src/iface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use proc_macro2::TokenStream;
use quote::{format_ident, quote};
use std::collections::BTreeMap;
use syn::{
self, parse_quote, punctuated::Punctuated, spanned::Spanned, AngleBracketedGenericArguments,
parse_quote, punctuated::Punctuated, spanned::Spanned, AngleBracketedGenericArguments,
AttributeArgs, Error, FnArg, GenericArgument, ImplItem, ItemImpl, Lit::Str, Meta,
Meta::NameValue, MetaList, MetaNameValue, NestedMeta, PatType, PathArguments, ReturnType,
Signature, Token, Type, TypePath,
Expand Down
2 changes: 1 addition & 1 deletion zbus_macros/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use proc_macro2::{Literal, Span, TokenStream};
use quote::{format_ident, quote, quote_spanned, ToTokens};
use regex::Regex;
use syn::{
self, fold::Fold, parse_quote, spanned::Spanned, AttributeArgs, Error, FnArg, Ident, ItemTrait,
fold::Fold, parse_quote, spanned::Spanned, AttributeArgs, Error, FnArg, Ident, ItemTrait,
ReturnType, TraitItemMethod,
};
use zvariant_utils::{case, def_attrs};
Expand Down
1 change: 0 additions & 1 deletion zbus_xmlgen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use std::{
io::Write,
path::Path,
process::{Command, Stdio},
result::Result,
};

use zbus::{
Expand Down
2 changes: 1 addition & 1 deletion zvariant_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
)))]

use proc_macro::TokenStream;
use syn::{self, DeriveInput};
use syn::DeriveInput;

mod dict;
mod r#type;
Expand Down
2 changes: 1 addition & 1 deletion zvariant_derive/src/type.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use proc_macro2::TokenStream;
use quote::{quote, ToTokens};
use syn::{
self, spanned::Spanned, Attribute, Data, DataEnum, DeriveInput, Error, Fields, Generics, Ident,
spanned::Spanned, Attribute, Data, DataEnum, DeriveInput, Error, Fields, Generics, Ident,
};

use crate::utils::*;
Expand Down
4 changes: 2 additions & 2 deletions zvariant_derive/src/value.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use proc_macro2::{Span, TokenStream};
use quote::{quote, ToTokens};
use syn::{
self, spanned::Spanned, Attribute, Data, DataEnum, DeriveInput, Error, Expr, Fields, Generics,
Ident, Lifetime, LifetimeDef,
spanned::Spanned, Attribute, Data, DataEnum, DeriveInput, Error, Expr, Fields, Generics, Ident,
Lifetime, LifetimeDef,
};

use crate::utils::*;
Expand Down

0 comments on commit 3b3aedb

Please sign in to comment.