Fix for new redundant import warnings in nightly Rust (#2858)
This commit is contained in:
Родитель
a9b594b248
Коммит
057d293af6
|
@ -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<()> {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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<()> {
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#![allow(non_snake_case)]
|
||||
|
||||
use super::Write;
|
||||
use super::*;
|
||||
|
||||
#[derive(Default)]
|
||||
|
|
|
@ -8,8 +8,6 @@ macro_rules! com_call {
|
|||
}
|
||||
}
|
||||
|
||||
pub use com_call;
|
||||
|
||||
#[repr(transparent)]
|
||||
pub struct ComPtr(std::ptr::NonNull<std::ffi::c_void>);
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#![allow(non_snake_case)]
|
||||
|
||||
use std::convert::TryFrom;
|
||||
use windows::{core::*, Foundation::Collections::*, Foundation::*, Win32::Foundation::E_BOUNDS};
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#![allow(non_snake_case)]
|
||||
|
||||
use std::convert::TryFrom;
|
||||
use windows::{core::*, Foundation::Collections::*, Win32::Foundation::E_BOUNDS};
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
use std::convert::TryFrom;
|
||||
use windows::core::*;
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
use std::convert::TryInto;
|
||||
use windows::core::HRESULT;
|
||||
use windows::Win32::Foundation::*;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
use core::convert::{TryFrom, TryInto};
|
||||
use windows::core::*;
|
||||
use windows::Foundation::*;
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
use core::convert::*;
|
||||
use core::iter::FromIterator;
|
||||
|
||||
use windows::{
|
||||
core::Interface,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
use std::convert::TryInto;
|
||||
use windows::{Foundation::Uri, Win32::Foundation::E_NOINTERFACE};
|
||||
|
||||
#[test]
|
||||
|
|
Загрузка…
Ссылка в новой задаче