diff --git a/crates/libs/bindgen/src/rdl/from_reader.rs b/crates/libs/bindgen/src/rdl/from_reader.rs index e1c0241496..d194560c1b 100644 --- a/crates/libs/bindgen/src/rdl/from_reader.rs +++ b/crates/libs/bindgen/src/rdl/from_reader.rs @@ -1,5 +1,4 @@ use super::*; -use crate::Result; use tokens::{quote, to_ident, TokenStream}; pub fn from_reader(reader: &'static metadata::Reader, mut config: std::collections::BTreeMap<&str, &str>, output: &str) -> Result<()> { diff --git a/crates/libs/bindgen/src/rdl/to_winmd.rs b/crates/libs/bindgen/src/rdl/to_winmd.rs index 2cdb6bab16..88933a1ea9 100644 --- a/crates/libs/bindgen/src/rdl/to_winmd.rs +++ b/crates/libs/bindgen/src/rdl/to_winmd.rs @@ -1,6 +1,5 @@ use super::*; -use crate::winmd::{self, writer}; -use crate::Result; +use crate::winmd::writer; // TODO: store span in winmd so that errors resolving type references can be traced back to file/line/column use std::collections::HashMap; diff --git a/crates/libs/bindgen/src/rust/mod.rs b/crates/libs/bindgen/src/rust/mod.rs index cf0941a6ba..43078c4749 100644 --- a/crates/libs/bindgen/src/rust/mod.rs +++ b/crates/libs/bindgen/src/rust/mod.rs @@ -17,7 +17,6 @@ mod try_format; mod winrt_methods; mod writer; use super::*; -use crate::Result; use rayon::prelude::*; pub fn from_reader(reader: &'static metadata::Reader, mut config: std::collections::BTreeMap<&str, &str>, output: &str) -> Result<()> { diff --git a/crates/libs/bindgen/src/winmd/writer/tables.rs b/crates/libs/bindgen/src/winmd/writer/tables.rs index 474f9cce8d..50009acd7a 100644 --- a/crates/libs/bindgen/src/winmd/writer/tables.rs +++ b/crates/libs/bindgen/src/winmd/writer/tables.rs @@ -1,6 +1,5 @@ #![allow(non_snake_case)] -use super::Write; use super::*; #[derive(Default)] diff --git a/crates/libs/result/src/com.rs b/crates/libs/result/src/com.rs index 6c150081fd..e93322e13d 100644 --- a/crates/libs/result/src/com.rs +++ b/crates/libs/result/src/com.rs @@ -8,8 +8,6 @@ macro_rules! com_call { } } -pub use com_call; - #[repr(transparent)] pub struct ComPtr(std::ptr::NonNull); diff --git a/crates/tests/collections/tests/stock_iterable.rs b/crates/tests/collections/tests/stock_iterable.rs index 1bf65326de..7743b04443 100644 --- a/crates/tests/collections/tests/stock_iterable.rs +++ b/crates/tests/collections/tests/stock_iterable.rs @@ -1,6 +1,5 @@ #![allow(non_snake_case)] -use std::convert::TryFrom; use windows::{core::*, Foundation::Collections::*, Foundation::*, Win32::Foundation::E_BOUNDS}; #[test] diff --git a/crates/tests/collections/tests/stock_map_view.rs b/crates/tests/collections/tests/stock_map_view.rs index e45807c7fe..fa06fd8fa9 100644 --- a/crates/tests/collections/tests/stock_map_view.rs +++ b/crates/tests/collections/tests/stock_map_view.rs @@ -1,7 +1,6 @@ #![allow(non_snake_case)] use std::collections::BTreeMap; -use std::convert::{TryFrom, TryInto}; use windows::{core::*, Foundation::Collections::*, Win32::Foundation::E_BOUNDS}; #[test] diff --git a/crates/tests/collections/tests/stock_vector_view.rs b/crates/tests/collections/tests/stock_vector_view.rs index b966758b83..67cc93b10c 100644 --- a/crates/tests/collections/tests/stock_vector_view.rs +++ b/crates/tests/collections/tests/stock_vector_view.rs @@ -1,6 +1,5 @@ #![allow(non_snake_case)] -use std::convert::TryFrom; use windows::{core::*, Foundation::Collections::*, Win32::Foundation::E_BOUNDS}; #[test] diff --git a/crates/tests/core/tests/hstring.rs b/crates/tests/core/tests/hstring.rs index 205693dca4..78c73e647c 100644 --- a/crates/tests/core/tests/hstring.rs +++ b/crates/tests/core/tests/hstring.rs @@ -1,4 +1,3 @@ -use std::convert::TryFrom; use windows::core::*; #[test] diff --git a/crates/tests/win32/tests/hresult.rs b/crates/tests/win32/tests/hresult.rs index 045d423374..ca2efcc6bb 100644 --- a/crates/tests/win32/tests/hresult.rs +++ b/crates/tests/win32/tests/hresult.rs @@ -1,4 +1,3 @@ -use std::convert::TryInto; use windows::core::HRESULT; use windows::Win32::Foundation::*; diff --git a/crates/tests/win32/tests/win32.rs b/crates/tests/win32/tests/win32.rs index 7516079bf1..188b531411 100644 --- a/crates/tests/win32/tests/win32.rs +++ b/crates/tests/win32/tests/win32.rs @@ -11,7 +11,7 @@ use windows::{ Win32::Security::Authorization::*, Win32::System::Com::StructuredStorage::*, Win32::System::Com::*, - Win32::System::{Com::CreateUri, Diagnostics::Debug::*, Threading::*}, + Win32::System::{Diagnostics::Debug::*, Threading::*}, Win32::UI::{ Accessibility::UIA_ScrollPatternNoScroll, Animation::UIAnimationManager, @@ -20,9 +20,6 @@ use windows::{ }, }; -use std::convert::TryInto; -use windows::core::GUID; - #[test] fn signed_enum32() { assert!(ACCESS_MODE::default().0 == 0); diff --git a/crates/tests/winrt/tests/boxing.rs b/crates/tests/winrt/tests/boxing.rs index 93030338c3..25bf72de89 100644 --- a/crates/tests/winrt/tests/boxing.rs +++ b/crates/tests/winrt/tests/boxing.rs @@ -1,4 +1,3 @@ -use core::convert::{TryFrom, TryInto}; use windows::core::*; use windows::Foundation::*; diff --git a/crates/tests/winrt/tests/collections.rs b/crates/tests/winrt/tests/collections.rs index bc10f569f6..3a491b4cab 100644 --- a/crates/tests/winrt/tests/collections.rs +++ b/crates/tests/winrt/tests/collections.rs @@ -1,5 +1,4 @@ use core::convert::*; -use core::iter::FromIterator; use windows::{ core::Interface, diff --git a/crates/tests/winrt/tests/error.rs b/crates/tests/winrt/tests/error.rs index 0cd9650624..330664decf 100644 --- a/crates/tests/winrt/tests/error.rs +++ b/crates/tests/winrt/tests/error.rs @@ -1,4 +1,3 @@ -use std::convert::TryInto; use windows::{Foundation::Uri, Win32::Foundation::E_NOINTERFACE}; #[test]