From 4f2fd4dcf70500f893b705abdbba7e80b498ee01 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 15 Dec 2022 18:40:51 -0300 Subject: [PATCH] chore: run cargo fmt --- core/tauri-codegen/src/context.rs | 4 +--- core/tauri/src/lib.rs | 3 ++- core/tauri/src/plugin.rs | 4 +--- tooling/cli/src/dev.rs | 4 +--- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/core/tauri-codegen/src/context.rs b/core/tauri-codegen/src/context.rs index e562dba20..8f8492c40 100644 --- a/core/tauri-codegen/src/context.rs +++ b/core/tauri-codegen/src/context.rs @@ -370,9 +370,7 @@ pub fn context_codegen(data: ContextData) -> Result { let dir = config_parent.join(dir); if !dir.exists() { - panic!( - "The isolation application path is set to `{dir:?}` but it does not exist" - ) + panic!("The isolation application path is set to `{dir:?}` but it does not exist") } let mut sets_isolation_hook = false; diff --git a/core/tauri/src/lib.rs b/core/tauri/src/lib.rs index 4017b980a..4d4253eff 100644 --- a/core/tauri/src/lib.rs +++ b/core/tauri/src/lib.rs @@ -900,7 +900,8 @@ mod tests { // we assume that module features are the ones that start with `-` // though it's not 100% accurate, we have an allowed list to fix it let module_features = manifest - .features.keys() + .features + .keys() .filter(|f| f.starts_with(&module_prefix)); for module_feature in module_features { assert!( diff --git a/core/tauri/src/plugin.rs b/core/tauri/src/plugin.rs index a7b8cb0a1..6c42d9927 100644 --- a/core/tauri/src/plugin.rs +++ b/core/tauri/src/plugin.rs @@ -586,9 +586,7 @@ impl PluginStore { .unwrap_or_else(String::new); plugin.extend_api(invoke); } else { - invoke - .resolver - .reject(format!("plugin {target} not found")); + invoke.resolver.reject(format!("plugin {target} not found")); } } } diff --git a/tooling/cli/src/dev.rs b/tooling/cli/src/dev.rs index ea71a7a65..955e1085b 100644 --- a/tooling/cli/src/dev.rs +++ b/tooling/cli/src/dev.rs @@ -238,9 +238,7 @@ fn command_internal(mut options: Options) -> Result<()> { c.build.dev_path = dev_path.clone(); options.config = Some(serde_json::to_string(&c).unwrap()); } else { - options.config = Some(format!( - r#"{{ "build": {{ "devPath": "{SERVER_URL}" }} }}"# - )) + options.config = Some(format!(r#"{{ "build": {{ "devPath": "{SERVER_URL}" }} }}"#)) } } }