diff --git a/crates/tauri-bundler/src/bundle/category.rs b/crates/tauri-bundler/src/bundle/category.rs index 747e252bff4a..a3ddbab638c5 100644 --- a/crates/tauri-bundler/src/bundle/category.rs +++ b/crates/tauri-bundler/src/bundle/category.rs @@ -249,7 +249,7 @@ struct AppCategoryVisitor { did_you_mean: Option<&'static str>, } -impl<'d> serde::de::Visitor<'d> for AppCategoryVisitor { +impl serde::de::Visitor<'_> for AppCategoryVisitor { type Value = AppCategory; fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { diff --git a/crates/tauri-bundler/src/bundle/settings.rs b/crates/tauri-bundler/src/bundle/settings.rs index b7d39aa685d0..de7e32a1e3b1 100644 --- a/crates/tauri-bundler/src/bundle/settings.rs +++ b/crates/tauri-bundler/src/bundle/settings.rs @@ -408,7 +408,7 @@ pub struct WixSettings { pub banner_path: Option, /// Path to a bitmap file to use on the installation user interface dialogs. /// It is used on the welcome and completion dialogs. - + /// /// The required dimensions are 493px × 312px. pub dialog_image_path: Option, /// Enables FIPS compliant algorithms. diff --git a/crates/tauri-cli/config.schema.json b/crates/tauri-cli/config.schema.json index d0e15c58f106..1c25517eacc7 100644 --- a/crates/tauri-cli/config.schema.json +++ b/crates/tauri-cli/config.schema.json @@ -2535,7 +2535,7 @@ ] }, "dialogImagePath": { - "description": "Path to a bitmap file to use on the installation user interface dialogs.\n It is used on the welcome and completion dialogs.\n The required dimensions are 493px × 312px.", + "description": "Path to a bitmap file to use on the installation user interface dialogs.\n It is used on the welcome and completion dialogs.\n\n The required dimensions are 493px × 312px.", "type": [ "string", "null" diff --git a/crates/tauri-cli/src/interface/rust.rs b/crates/tauri-cli/src/interface/rust.rs index 04906b1b0053..918729a30862 100644 --- a/crates/tauri-cli/src/interface/rust.rs +++ b/crates/tauri-cli/src/interface/rust.rs @@ -1533,7 +1533,7 @@ mod pkgconfig_utils { if !output.stdout.is_empty() { // output would be "-L/path/to/library\n" let word = output.stdout[2..].to_vec(); - return Some(String::from_utf8_lossy(&word).trim().to_string()); + Some(String::from_utf8_lossy(&word).trim().to_string()) } else { None } diff --git a/crates/tauri-cli/src/interface/rust/desktop.rs b/crates/tauri-cli/src/interface/rust/desktop.rs index be730eb706dc..a1825fff99cd 100644 --- a/crates/tauri-cli/src/interface/rust/desktop.rs +++ b/crates/tauri-cli/src/interface/rust/desktop.rs @@ -440,7 +440,7 @@ mod terminal { // INVALID_HANDLE_VALUE. Use an alternate method which works // in that case as well. let h = CreateFileA( - "CONOUT$\0".as_ptr() as PCSTR, + c"CONOUT$".as_ptr() as PCSTR, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, ptr::null_mut(), diff --git a/crates/tauri-schema-generator/schemas/config.schema.json b/crates/tauri-schema-generator/schemas/config.schema.json index d0e15c58f106..1c25517eacc7 100644 --- a/crates/tauri-schema-generator/schemas/config.schema.json +++ b/crates/tauri-schema-generator/schemas/config.schema.json @@ -2535,7 +2535,7 @@ ] }, "dialogImagePath": { - "description": "Path to a bitmap file to use on the installation user interface dialogs.\n It is used on the welcome and completion dialogs.\n The required dimensions are 493px × 312px.", + "description": "Path to a bitmap file to use on the installation user interface dialogs.\n It is used on the welcome and completion dialogs.\n\n The required dimensions are 493px × 312px.", "type": [ "string", "null" diff --git a/crates/tauri-utils/src/config.rs b/crates/tauri-utils/src/config.rs index 22a2e8fbca8a..824a835fea15 100644 --- a/crates/tauri-utils/src/config.rs +++ b/crates/tauri-utils/src/config.rs @@ -750,7 +750,7 @@ pub struct WixConfig { pub banner_path: Option, /// Path to a bitmap file to use on the installation user interface dialogs. /// It is used on the welcome and completion dialogs. - + /// /// The required dimensions are 493px × 312px. #[serde(alias = "dialog-image-path")] pub dialog_image_path: Option, @@ -2644,7 +2644,7 @@ impl<'d> serde::Deserialize<'d> for PackageVersion { fn deserialize>(deserializer: D) -> Result { struct PackageVersionVisitor; - impl<'d> Visitor<'d> for PackageVersionVisitor { + impl Visitor<'_> for PackageVersionVisitor { type Value = PackageVersion; fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { diff --git a/crates/tauri-utils/src/resources.rs b/crates/tauri-utils/src/resources.rs index b040af39c6dc..5148a8439a85 100644 --- a/crates/tauri-utils/src/resources.rs +++ b/crates/tauri-utils/src/resources.rs @@ -142,7 +142,7 @@ pub struct ResourcePathsIter<'a> { glob_iter: Option, } -impl<'a> ResourcePathsIter<'a> { +impl ResourcePathsIter<'_> { fn next_glob_iter(&mut self) -> Option> { let entry = self.glob_iter.as_mut().unwrap().next()?; @@ -270,7 +270,7 @@ impl<'a> ResourcePathsIter<'a> { } } -impl<'a> Iterator for ResourcePaths<'a> { +impl Iterator for ResourcePaths<'_> { type Item = crate::Result; fn next(&mut self) -> Option> { @@ -278,7 +278,7 @@ impl<'a> Iterator for ResourcePaths<'a> { } } -impl<'a> Iterator for ResourcePathsIter<'a> { +impl Iterator for ResourcePathsIter<'_> { type Item = crate::Result; fn next(&mut self) -> Option> { diff --git a/crates/tauri/src/ipc/mod.rs b/crates/tauri/src/ipc/mod.rs index e70ed25d9877..a554dad0aa64 100644 --- a/crates/tauri/src/ipc/mod.rs +++ b/crates/tauri/src/ipc/mod.rs @@ -145,7 +145,7 @@ pub struct Request<'a> { headers: &'a HeaderMap, } -impl<'a> Request<'a> { +impl Request<'_> { /// The request body. pub fn body(&self) -> &InvokeBody { self.body diff --git a/crates/tauri/src/lib.rs b/crates/tauri/src/lib.rs index 8a6a81220fd3..cbbf07bd55d3 100644 --- a/crates/tauri/src/lib.rs +++ b/crates/tauri/src/lib.rs @@ -1044,7 +1044,7 @@ pub mod test; const _: () = { use specta::{datatype::DataType, function::FunctionArg, TypeMap}; - impl<'r, T: Send + Sync + 'static> FunctionArg for crate::State<'r, T> { + impl FunctionArg for crate::State<'_, T> { fn to_datatype(_: &mut TypeMap) -> Option { None } diff --git a/crates/tauri/src/state.rs b/crates/tauri/src/state.rs index b0cba3578de8..8175e62c7272 100644 --- a/crates/tauri/src/state.rs +++ b/crates/tauri/src/state.rs @@ -51,7 +51,7 @@ impl PartialEq for State<'_, T> { } } -impl<'r, T: Send + Sync + std::fmt::Debug> std::fmt::Debug for State<'r, T> { +impl std::fmt::Debug for State<'_, T> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.debug_tuple("State").field(&self.0).finish() } diff --git a/crates/tauri/src/webview/webview_window.rs b/crates/tauri/src/webview/webview_window.rs index ec4aebbd2067..47ca3d4183a6 100644 --- a/crates/tauri/src/webview/webview_window.rs +++ b/crates/tauri/src/webview/webview_window.rs @@ -743,7 +743,7 @@ impl<'a, R: Runtime, M: Manager> WebviewWindowBuilder<'a, R, M> { } /// Webview attributes. -impl<'a, R: Runtime, M: Manager> WebviewWindowBuilder<'a, R, M> { +impl> WebviewWindowBuilder<'_, R, M> { /// Sets whether clicking an inactive window also clicks through to the webview. #[must_use] pub fn accept_first_mouse(mut self, accept: bool) -> Self { diff --git a/crates/tauri/src/window/mod.rs b/crates/tauri/src/window/mod.rs index dc8e6cc8d607..8330d6aaa733 100644 --- a/crates/tauri/src/window/mod.rs +++ b/crates/tauri/src/window/mod.rs @@ -125,7 +125,7 @@ unstable_struct!( } ); -impl<'a, R: Runtime, M: Manager> fmt::Debug for WindowBuilder<'a, R, M> { +impl> fmt::Debug for WindowBuilder<'_, R, M> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("WindowBuilder") .field("label", &self.label) @@ -846,7 +846,7 @@ impl<'a, R: Runtime, M: Manager> WindowBuilder<'a, R, M> { } } -impl<'a, R: Runtime, M: Manager> WindowBuilder<'a, R, M> { +impl> WindowBuilder<'_, R, M> { /// Set the window and webview background color. /// /// ## Platform-specific: