chore: run cargo fmt

This commit is contained in:
Lucas Nogueira 2022-12-15 18:40:51 -03:00
parent cf0986491c
commit 4f2fd4dcf7
No known key found for this signature in database
GPG Key ID: FFEA6C72E73482F1
4 changed files with 5 additions and 10 deletions

View File

@ -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;

View File

@ -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!(

View File

@ -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"));
}
}
}

View File

@ -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}" }} }}"#))
}
}
}