Skip to content

Commit 285eb56

Browse files
tgross35emilio
authored andcommitted
Fix 'unused_imports' warnings that started appearing in CI recently
1 parent 454ec84 commit 285eb56

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

bindgen/codegen/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ pub(crate) mod ast_ty {
126126
use crate::ir::function::FunctionSig;
127127
use crate::ir::layout::Layout;
128128
use crate::ir::ty::{FloatKind, IntKind};
129-
use proc_macro2::{self, TokenStream};
129+
use proc_macro2::TokenStream;
130130
use std::str::FromStr;
131131

132132
pub(crate) fn c_void(ctx: &BindgenContext) -> syn::Type {

bindgen/codegen/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ use crate::ir::template::{
5252
use crate::ir::ty::{Type, TypeKind};
5353
use crate::ir::var::Var;
5454

55-
use proc_macro2::{self, Ident, Span};
55+
use proc_macro2::{Ident, Span};
5656
use quote::TokenStreamExt;
5757

5858
use crate::{Entry, HashMap, HashSet};

bindgen/codegen/struct_layout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::ir::context::BindgenContext;
77
use crate::ir::layout::Layout;
88
use crate::ir::ty::{Type, TypeKind};
99
use crate::FieldVisibilityKind;
10-
use proc_macro2::{self, Ident, Span};
10+
use proc_macro2::{Ident, Span};
1111
use std::cmp;
1212

1313
const MAX_GUARANTEED_ALIGN: usize = 8;

bindgen/ir/context.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ use quote::ToTokens;
2929
use std::borrow::Cow;
3030
use std::cell::{Cell, RefCell};
3131
use std::collections::{BTreeSet, HashMap as StdHashMap};
32-
use std::iter::IntoIterator;
3332
use std::mem;
3433

3534
/// An identifier for some kind of IR item.

bindgen/ir/function.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use super::ty::TypeKind;
99
use crate::callbacks::{ItemInfo, ItemKind};
1010
use crate::clang::{self, ABIKind, Attribute};
1111
use crate::parse::{ClangSubItemParser, ParseError, ParseResult};
12-
use clang_sys::{self, CXCallingConv};
12+
use clang_sys::CXCallingConv;
1313

1414
use quote::TokenStreamExt;
1515
use std::io;

0 commit comments

Comments
 (0)