mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-09-11 07:55:34 +03:00
chore: run cargo fmt
This commit is contained in:
parent
cf0986491c
commit
4f2fd4dcf7
@ -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;
|
||||
|
@ -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!(
|
||||
|
@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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}" }} }}"#))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user