Skip to content

Commit

Permalink
chore: run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Dec 15, 2022
1 parent cf09864 commit 4f2fd4d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
4 changes: 1 addition & 3 deletions core/tauri-codegen/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion core/tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down
4 changes: 1 addition & 3 deletions core/tauri/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
}
}
4 changes: 1 addition & 3 deletions tooling/cli/src/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}" }} }}"#))
}
}
}
Expand Down

0 comments on commit 4f2fd4d

Please sign in to comment.