Bladeren bron

chore: run cargo fmt

Lucas Nogueira 2 jaren geleden
bovenliggende
commit
4f2fd4dcf7
4 gewijzigde bestanden met toevoegingen van 5 en 10 verwijderingen
  1. 1 3
      core/tauri-codegen/src/context.rs
  2. 2 1
      core/tauri/src/lib.rs
  3. 1 3
      core/tauri/src/plugin.rs
  4. 1 3
      tooling/cli/src/dev.rs

+ 1 - 3
core/tauri-codegen/src/context.rs

@@ -370,9 +370,7 @@ pub fn context_codegen(data: ContextData) -> Result<TokenStream, EmbeddedAssetsE
     PatternKind::Isolation { dir } => {
       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;

+ 2 - 1
core/tauri/src/lib.rs

@@ -900,7 +900,8 @@ mod tests {
       // we assume that module features are the ones that start with `<module>-`
       // 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!(

+ 1 - 3
core/tauri/src/plugin.rs

@@ -586,9 +586,7 @@ impl<R: Runtime> PluginStore<R> {
         .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"));
     }
   }
 }

+ 1 - 3
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}" }} }}"#))
         }
       }
     }