From 6af1383b1fd013fe5ace6bcde468632353071630 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 12 Dec 2023 11:12:20 -0600 Subject: [PATCH 1/5] toml --- Cargo.toml | 3 +++ crates/libs/bindgen/Cargo.toml | 3 +++ crates/libs/implement/Cargo.toml | 3 +++ crates/libs/interface/Cargo.toml | 3 +++ crates/libs/metadata/Cargo.toml | 3 +++ crates/libs/sys/Cargo.toml | 3 +++ crates/libs/targets/Cargo.toml | 3 +++ crates/libs/version/Cargo.toml | 3 +++ crates/libs/windows/Cargo.toml | 3 +++ 9 files changed, 27 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 5fdebc4a95..f83f78683e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,3 +11,6 @@ members = [ exclude = [ "crates/targets/baseline", ] + +[workspace.lints.rust] +elided-lifetimes-in-paths = "warn" diff --git a/crates/libs/bindgen/Cargo.toml b/crates/libs/bindgen/Cargo.toml index f814d8bf66..75f26ac96f 100644 --- a/crates/libs/bindgen/Cargo.toml +++ b/crates/libs/bindgen/Cargo.toml @@ -9,6 +9,9 @@ description = "Windows metadata compiler" repository = "https://github.com/microsoft/windows-rs" readme = "readme.md" +[lints] +workspace = true + [package.metadata.docs.rs] default-target = "x86_64-pc-windows-msvc" targets = [] diff --git a/crates/libs/implement/Cargo.toml b/crates/libs/implement/Cargo.toml index 85abfd73b6..0c0b4ff743 100644 --- a/crates/libs/implement/Cargo.toml +++ b/crates/libs/implement/Cargo.toml @@ -8,6 +8,9 @@ license = "MIT OR Apache-2.0" description = "The implement macro for the windows crate" repository = "https://github.com/microsoft/windows-rs" +[lints] +workspace = true + [package.metadata.docs.rs] default-target = "x86_64-pc-windows-msvc" targets = [] diff --git a/crates/libs/interface/Cargo.toml b/crates/libs/interface/Cargo.toml index 81aabdc105..55996fb233 100644 --- a/crates/libs/interface/Cargo.toml +++ b/crates/libs/interface/Cargo.toml @@ -8,6 +8,9 @@ license = "MIT OR Apache-2.0" description = "The interface macro for the windows crate" repository = "https://github.com/microsoft/windows-rs" +[lints] +workspace = true + [package.metadata.docs.rs] default-target = "x86_64-pc-windows-msvc" targets = [] diff --git a/crates/libs/metadata/Cargo.toml b/crates/libs/metadata/Cargo.toml index 3ebc9d24b0..c94a8ab624 100644 --- a/crates/libs/metadata/Cargo.toml +++ b/crates/libs/metadata/Cargo.toml @@ -9,6 +9,9 @@ description = "Windows metadata reader" repository = "https://github.com/microsoft/windows-rs" readme = "readme.md" +[lints] +workspace = true + [package.metadata.docs.rs] default-target = "x86_64-pc-windows-msvc" targets = [] diff --git a/crates/libs/sys/Cargo.toml b/crates/libs/sys/Cargo.toml index 000cf7d108..57ec957dad 100644 --- a/crates/libs/sys/Cargo.toml +++ b/crates/libs/sys/Cargo.toml @@ -10,6 +10,9 @@ repository = "https://github.com/microsoft/windows-rs" readme = "readme.md" categories = ["os::windows-apis"] +[lints] +workspace = true + [package.metadata.docs.rs] default-target = "x86_64-pc-windows-msvc" targets = [] diff --git a/crates/libs/targets/Cargo.toml b/crates/libs/targets/Cargo.toml index fbbe66fa6d..950cae37ab 100644 --- a/crates/libs/targets/Cargo.toml +++ b/crates/libs/targets/Cargo.toml @@ -10,6 +10,9 @@ description = "Import libs for Windows" repository = "https://github.com/microsoft/windows-rs" readme = "readme.md" +[lints] +workspace = true + [target.'cfg(all(target_arch = "x86", target_env = "msvc", not(windows_raw_dylib)))'.dependencies] windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.52.0" } diff --git a/crates/libs/version/Cargo.toml b/crates/libs/version/Cargo.toml index 7c612d7405..644ba93716 100644 --- a/crates/libs/version/Cargo.toml +++ b/crates/libs/version/Cargo.toml @@ -10,6 +10,9 @@ repository = "https://github.com/microsoft/windows-rs" readme = "readme.md" categories = ["os::windows-apis"] +[lints] +workspace = true + [package.metadata.docs.rs] default-target = "x86_64-pc-windows-msvc" targets = [] diff --git a/crates/libs/windows/Cargo.toml b/crates/libs/windows/Cargo.toml index e47d45ed1e..e6eb683516 100644 --- a/crates/libs/windows/Cargo.toml +++ b/crates/libs/windows/Cargo.toml @@ -12,6 +12,9 @@ documentation = "https://microsoft.github.io/windows-docs-rs/" readme = "readme.md" categories = ["os::windows-apis"] +[lints] +workspace = true + [package.metadata.docs.rs] default-target = "x86_64-pc-windows-msvc" targets = [] From 1118bc15b907eb9df84981c66371c2cb2d055d02 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 12 Dec 2023 11:12:36 -0600 Subject: [PATCH 2/5] elided-lifetimes-in-paths --- crates/libs/bindgen/src/rdl/mod.rs | 20 +++++++++---------- crates/libs/bindgen/src/rust/writer.rs | 2 +- crates/libs/implement/src/lib.rs | 6 +++--- crates/libs/interface/src/lib.rs | 6 +++--- .../windows/src/Windows/Devices/Sms/mod.rs | 12 +++++------ .../windows/src/Windows/Foundation/mod.rs | 8 ++++---- .../Security/Authentication/OnlineId/mod.rs | 4 ++-- .../src/Windows/Storage/Streams/mod.rs | 4 ++-- 8 files changed, 31 insertions(+), 31 deletions(-) diff --git a/crates/libs/bindgen/src/rdl/mod.rs b/crates/libs/bindgen/src/rdl/mod.rs index 6cabb168bb..dec1554cac 100644 --- a/crates/libs/bindgen/src/rdl/mod.rs +++ b/crates/libs/bindgen/src/rdl/mod.rs @@ -136,7 +136,7 @@ pub struct Interface { syn::custom_keyword!(interface); syn::custom_keyword!(class); -fn winrt(input: syn::parse::ParseStream) -> syn::Result { +fn winrt(input: syn::parse::ParseStream<'_>) -> syn::Result { let attributes = input.call(syn::Attribute::parse_inner)?; if attributes.len() == 1 { if let syn::Meta::Path(path) = &attributes[0].meta { @@ -154,7 +154,7 @@ fn winrt(input: syn::parse::ParseStream) -> syn::Result { } impl syn::parse::Parse for File { - fn parse(input: syn::parse::ParseStream) -> syn::Result { + fn parse(input: syn::parse::ParseStream<'_>) -> syn::Result { let mut references = vec![]; let mut modules = vec![]; let winrt = winrt(input)?; @@ -178,7 +178,7 @@ impl Module { self.namespace.rsplit_once('.').map_or(&self.namespace, |(_, name)| name) } - fn parse(namespace: &str, winrt: bool, input: syn::parse::ParseStream) -> syn::Result { + fn parse(namespace: &str, winrt: bool, input: syn::parse::ParseStream<'_>) -> syn::Result { input.parse::()?; let name = input.parse::()?.to_string(); @@ -195,7 +195,7 @@ impl Module { } impl ModuleMember { - fn parse(namespace: &str, winrt: bool, input: syn::parse::ParseStream) -> syn::Result { + fn parse(namespace: &str, winrt: bool, input: syn::parse::ParseStream<'_>) -> syn::Result { let attributes: Vec = input.call(syn::Attribute::parse_outer)?; let lookahead = input.lookahead1(); if lookahead.peek(syn::Token![mod]) { @@ -222,7 +222,7 @@ impl ModuleMember { } impl Class { - fn parse(attributes: Vec, input: syn::parse::ParseStream) -> syn::Result { + fn parse(attributes: Vec, input: syn::parse::ParseStream<'_>) -> syn::Result { input.parse::()?; let name = input.parse::()?.to_string(); let mut extends = Vec::new(); @@ -247,7 +247,7 @@ impl Class { } impl Interface { - fn parse(_namespace: &str, winrt: bool, attributes: Vec, input: syn::parse::ParseStream) -> syn::Result { + fn parse(_namespace: &str, winrt: bool, attributes: Vec, input: syn::parse::ParseStream<'_>) -> syn::Result { input.parse::()?; let name = input.parse::()?.to_string(); @@ -284,7 +284,7 @@ impl Interface { } impl Struct { - fn parse(_namespace: &str, winrt: bool, attributes: Vec, input: syn::parse::ParseStream) -> syn::Result { + fn parse(_namespace: &str, winrt: bool, attributes: Vec, input: syn::parse::ParseStream<'_>) -> syn::Result { // TODO: need to validate that the struct is valid according to the constraints of the winmd type system. // Same for the other types. That way we can spit out errors quickly for things like unnamed fields. let span = input.span(); @@ -311,7 +311,7 @@ impl Struct { } impl Enum { - fn parse(_namespace: &str, winrt: bool, attributes: Vec, input: syn::parse::ParseStream) -> syn::Result { + fn parse(_namespace: &str, winrt: bool, attributes: Vec, input: syn::parse::ParseStream<'_>) -> syn::Result { let mut item: syn::ItemEnum = input.parse()?; item.attrs = attributes; let name = item.ident.to_string(); @@ -320,7 +320,7 @@ impl Enum { } impl Constant { - fn parse(_namespace: &str, attributes: Vec, input: syn::parse::ParseStream) -> syn::Result { + fn parse(_namespace: &str, attributes: Vec, input: syn::parse::ParseStream<'_>) -> syn::Result { let mut item: syn::ItemConst = input.parse()?; item.attrs = attributes; let name = item.ident.to_string(); @@ -329,7 +329,7 @@ impl Constant { } impl Function { - fn parse(_namespace: &str, attributes: Vec, input: syn::parse::ParseStream) -> syn::Result { + fn parse(_namespace: &str, attributes: Vec, input: syn::parse::ParseStream<'_>) -> syn::Result { let mut item: syn::TraitItemFn = input.parse()?; item.attrs = attributes; let name = item.sig.ident.to_string(); diff --git a/crates/libs/bindgen/src/rust/writer.rs b/crates/libs/bindgen/src/rust/writer.rs index bc7ce5f051..9132953e9d 100644 --- a/crates/libs/bindgen/src/rust/writer.rs +++ b/crates/libs/bindgen/src/rust/writer.rs @@ -618,7 +618,7 @@ impl Writer { impl<#constraints> ::std::future::Future for #ident { type Output = ::windows_core::Result<#return_type>; - fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context) -> ::std::task::Poll { + fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context<'_>) -> ::std::task::Poll { if self.Status()? == #namespace AsyncStatus::Started { let waker = context.waker().clone(); diff --git a/crates/libs/implement/src/lib.rs b/crates/libs/implement/src/lib.rs index 297e202ad9..cd3a7ca849 100644 --- a/crates/libs/implement/src/lib.rs +++ b/crates/libs/implement/src/lib.rs @@ -238,7 +238,7 @@ struct ImplementAttributes { } impl syn::parse::Parse for ImplementAttributes { - fn parse(cursor: syn::parse::ParseStream) -> syn::parse::Result { + fn parse(cursor: syn::parse::ParseStream<'_>) -> syn::parse::Result { let mut input = Self::default(); while !cursor.is_empty() { @@ -250,7 +250,7 @@ impl syn::parse::Parse for ImplementAttributes { } impl ImplementAttributes { - fn parse_implement(&mut self, cursor: syn::parse::ParseStream) -> syn::parse::Result<()> { + fn parse_implement(&mut self, cursor: syn::parse::ParseStream<'_>) -> syn::parse::Result<()> { let tree = cursor.parse::()?; self.walk_implement(&tree, &mut String::new())?; @@ -341,7 +341,7 @@ struct UseGroup2 { } impl syn::parse::Parse for UseTree2 { - fn parse(input: syn::parse::ParseStream) -> syn::parse::Result { + fn parse(input: syn::parse::ParseStream<'_>) -> syn::parse::Result { let lookahead = input.lookahead1(); if lookahead.peek(syn::Ident) { use syn::ext::IdentExt; diff --git a/crates/libs/interface/src/lib.rs b/crates/libs/interface/src/lib.rs index ea7aaecd88..eb62c7847a 100644 --- a/crates/libs/interface/src/lib.rs +++ b/crates/libs/interface/src/lib.rs @@ -374,7 +374,7 @@ impl Interface { } impl Parse for Interface { - fn parse(input: ParseStream) -> syn::Result { + fn parse(input: ParseStream<'_>) -> syn::Result { let attributes = input.call(syn::Attribute::parse_outer)?; let mut docs = Vec::new(); for attr in attributes.into_iter() { @@ -475,7 +475,7 @@ impl Guid { } impl Parse for Guid { - fn parse(cursor: ParseStream) -> syn::Result { + fn parse(cursor: ParseStream<'_>) -> syn::Result { let string: Option = cursor.parse().ok(); Ok(Self(string)) @@ -514,7 +514,7 @@ impl InterfaceMethod { } impl syn::parse::Parse for InterfaceMethod { - fn parse(input: syn::parse::ParseStream) -> syn::Result { + fn parse(input: syn::parse::ParseStream<'_>) -> syn::Result { let docs = input.call(syn::Attribute::parse_outer)?; let visibility = input.parse::()?; let method = input.parse::()?; diff --git a/crates/libs/windows/src/Windows/Devices/Sms/mod.rs b/crates/libs/windows/src/Windows/Devices/Sms/mod.rs index fce7ff86af..13ce1d01cf 100644 --- a/crates/libs/windows/src/Windows/Devices/Sms/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Sms/mod.rs @@ -1254,7 +1254,7 @@ impl DeleteSmsMessageOperation { #[cfg(feature = "deprecated")] impl ::std::future::Future for DeleteSmsMessageOperation { type Output = ::windows_core::Result<()>; - fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context) -> ::std::task::Poll { + fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context<'_>) -> ::std::task::Poll { if self.Status()? == super::super::Foundation::AsyncStatus::Started { let waker = context.waker().clone(); let _ = self.SetCompleted(&super::super::Foundation::AsyncActionCompletedHandler::new(move |_sender, _args| { @@ -1362,7 +1362,7 @@ impl DeleteSmsMessagesOperation { #[cfg(feature = "deprecated")] impl ::std::future::Future for DeleteSmsMessagesOperation { type Output = ::windows_core::Result<()>; - fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context) -> ::std::task::Poll { + fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context<'_>) -> ::std::task::Poll { if self.Status()? == super::super::Foundation::AsyncStatus::Started { let waker = context.waker().clone(); let _ = self.SetCompleted(&super::super::Foundation::AsyncActionCompletedHandler::new(move |_sender, _args| { @@ -1473,7 +1473,7 @@ impl GetSmsDeviceOperation { #[cfg(feature = "deprecated")] impl ::std::future::Future for GetSmsDeviceOperation { type Output = ::windows_core::Result; - fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context) -> ::std::task::Poll { + fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context<'_>) -> ::std::task::Poll { if self.Status()? == super::super::Foundation::AsyncStatus::Started { let waker = context.waker().clone(); let _ = self.SetCompleted(&super::super::Foundation::AsyncOperationCompletedHandler::new(move |_sender, _args| { @@ -1584,7 +1584,7 @@ impl GetSmsMessageOperation { #[cfg(feature = "deprecated")] impl ::std::future::Future for GetSmsMessageOperation { type Output = ::windows_core::Result; - fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context) -> ::std::task::Poll { + fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context<'_>) -> ::std::task::Poll { if self.Status()? == super::super::Foundation::AsyncStatus::Started { let waker = context.waker().clone(); let _ = self.SetCompleted(&super::super::Foundation::AsyncOperationCompletedHandler::new(move |_sender, _args| { @@ -1719,7 +1719,7 @@ impl GetSmsMessagesOperation { #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] impl ::std::future::Future for GetSmsMessagesOperation { type Output = ::windows_core::Result>; - fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context) -> ::std::task::Poll { + fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context<'_>) -> ::std::task::Poll { if self.Status()? == super::super::Foundation::AsyncStatus::Started { let waker = context.waker().clone(); let _ = self.SetCompleted(&super::super::Foundation::AsyncOperationWithProgressCompletedHandler::new(move |_sender, _args| { @@ -1827,7 +1827,7 @@ impl SendSmsMessageOperation { #[cfg(feature = "deprecated")] impl ::std::future::Future for SendSmsMessageOperation { type Output = ::windows_core::Result<()>; - fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context) -> ::std::task::Poll { + fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context<'_>) -> ::std::task::Poll { if self.Status()? == super::super::Foundation::AsyncStatus::Started { let waker = context.waker().clone(); let _ = self.SetCompleted(&super::super::Foundation::AsyncActionCompletedHandler::new(move |_sender, _args| { diff --git a/crates/libs/windows/src/Windows/Foundation/mod.rs b/crates/libs/windows/src/Windows/Foundation/mod.rs index e8dcbfef61..9a7e872e9f 100644 --- a/crates/libs/windows/src/Windows/Foundation/mod.rs +++ b/crates/libs/windows/src/Windows/Foundation/mod.rs @@ -83,7 +83,7 @@ impl IAsyncAction { } impl ::std::future::Future for IAsyncAction { type Output = ::windows_core::Result<()>; - fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context) -> ::std::task::Poll { + fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context<'_>) -> ::std::task::Poll { if self.Status()? == AsyncStatus::Started { let waker = context.waker().clone(); let _ = self.SetCompleted(&AsyncActionCompletedHandler::new(move |_sender, _args| { @@ -202,7 +202,7 @@ impl IAsyncActionWithProgress< } impl ::std::future::Future for IAsyncActionWithProgress { type Output = ::windows_core::Result<()>; - fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context) -> ::std::task::Poll { + fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context<'_>) -> ::std::task::Poll { if self.Status()? == AsyncStatus::Started { let waker = context.waker().clone(); let _ = self.SetCompleted(&AsyncActionWithProgressCompletedHandler::new(move |_sender, _args| { @@ -370,7 +370,7 @@ impl IAsyncOperation { } impl ::std::future::Future for IAsyncOperation { type Output = ::windows_core::Result; - fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context) -> ::std::task::Poll { + fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context<'_>) -> ::std::task::Poll { if self.Status()? == AsyncStatus::Started { let waker = context.waker().clone(); let _ = self.SetCompleted(&AsyncOperationCompletedHandler::new(move |_sender, _args| { @@ -497,7 +497,7 @@ impl ::std::future::Future for IAsyncOperationWithProgress { type Output = ::windows_core::Result; - fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context) -> ::std::task::Poll { + fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context<'_>) -> ::std::task::Poll { if self.Status()? == AsyncStatus::Started { let waker = context.waker().clone(); let _ = self.SetCompleted(&AsyncOperationWithProgressCompletedHandler::new(move |_sender, _args| { diff --git a/crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs b/crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs index 887b0657e9..0925853b6e 100644 --- a/crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs @@ -584,7 +584,7 @@ impl SignOutUserOperation { } impl ::std::future::Future for SignOutUserOperation { type Output = ::windows_core::Result<()>; - fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context) -> ::std::task::Poll { + fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context<'_>) -> ::std::task::Poll { if self.Status()? == super::super::super::Foundation::AsyncStatus::Started { let waker = context.waker().clone(); let _ = self.SetCompleted(&super::super::super::Foundation::AsyncActionCompletedHandler::new(move |_sender, _args| { @@ -685,7 +685,7 @@ impl UserAuthenticationOperation { } impl ::std::future::Future for UserAuthenticationOperation { type Output = ::windows_core::Result; - fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context) -> ::std::task::Poll { + fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context<'_>) -> ::std::task::Poll { if self.Status()? == super::super::super::Foundation::AsyncStatus::Started { let waker = context.waker().clone(); let _ = self.SetCompleted(&super::super::super::Foundation::AsyncOperationCompletedHandler::new(move |_sender, _args| { diff --git a/crates/libs/windows/src/Windows/Storage/Streams/mod.rs b/crates/libs/windows/src/Windows/Storage/Streams/mod.rs index f36ca6e85b..af358bb2d9 100644 --- a/crates/libs/windows/src/Windows/Storage/Streams/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Streams/mod.rs @@ -1429,7 +1429,7 @@ impl DataReaderLoadOperation { } impl ::std::future::Future for DataReaderLoadOperation { type Output = ::windows_core::Result; - fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context) -> ::std::task::Poll { + fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context<'_>) -> ::std::task::Poll { if self.Status()? == super::super::Foundation::AsyncStatus::Started { let waker = context.waker().clone(); let _ = self.SetCompleted(&super::super::Foundation::AsyncOperationCompletedHandler::new(move |_sender, _args| { @@ -1718,7 +1718,7 @@ impl DataWriterStoreOperation { } impl ::std::future::Future for DataWriterStoreOperation { type Output = ::windows_core::Result; - fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context) -> ::std::task::Poll { + fn poll(self: ::std::pin::Pin<&mut Self>, context: &mut ::std::task::Context<'_>) -> ::std::task::Poll { if self.Status()? == super::super::Foundation::AsyncStatus::Started { let waker = context.waker().clone(); let _ = self.SetCompleted(&super::super::Foundation::AsyncOperationCompletedHandler::new(move |_sender, _args| { From 4b2fcb70c4224326e8187d497b19dcd57c96ff2a Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 12 Dec 2023 14:47:19 -0600 Subject: [PATCH 3/5] rust_2018_idioms --- Cargo.toml | 2 +- crates/libs/windows/src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f83f78683e..f206b9e62e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,4 +13,4 @@ exclude = [ ] [workspace.lints.rust] -elided-lifetimes-in-paths = "warn" +rust_2018_idioms = "warn" diff --git a/crates/libs/windows/src/lib.rs b/crates/libs/windows/src/lib.rs index a97aeb025e..5271e586f5 100644 --- a/crates/libs/windows/src/lib.rs +++ b/crates/libs/windows/src/lib.rs @@ -8,6 +8,7 @@ Learn more about Rust for Windows here: Date: Tue, 12 Dec 2023 15:13:51 -0600 Subject: [PATCH 4/5] sys --- crates/libs/sys/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/libs/sys/src/lib.rs b/crates/libs/sys/src/lib.rs index 592ef0d26d..0815269bf3 100644 --- a/crates/libs/sys/src/lib.rs +++ b/crates/libs/sys/src/lib.rs @@ -7,7 +7,6 @@ Learn more about Rust for Windows here: Date: Tue, 12 Dec 2023 15:15:21 -0600 Subject: [PATCH 5/5] windows-sys --- crates/libs/sys/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/libs/sys/src/lib.rs b/crates/libs/sys/src/lib.rs index 0815269bf3..a6ff1fc802 100644 --- a/crates/libs/sys/src/lib.rs +++ b/crates/libs/sys/src/lib.rs @@ -7,6 +7,9 @@ Learn more about Rust for Windows here: