diff --git a/crates/ubrn_common/src/rust_crate.rs b/crates/ubrn_common/src/rust_crate.rs index ef13326..019a9b3 100644 --- a/crates/ubrn_common/src/rust_crate.rs +++ b/crates/ubrn_common/src/rust_crate.rs @@ -22,11 +22,7 @@ pub struct CrateMetadata { impl CrateMetadata { pub fn profile(profile: Option<&str>, release: bool) -> &str { - profile.unwrap_or(if release { - "release" - } else { - "debug" - }) + profile.unwrap_or(if release { "release" } else { "debug" }) } pub fn library_path(&self, target: Option<&str>, profile: &str) -> Utf8PathBuf { diff --git a/xtask/src/run/rust_crate.rs b/xtask/src/run/rust_crate.rs index 5209a4b..9319694 100644 --- a/xtask/src/run/rust_crate.rs +++ b/xtask/src/run/rust_crate.rs @@ -55,9 +55,7 @@ impl CrateArg { fn cargo_build(metadata: &CrateMetadata, profile: &str) -> Result<()> { let mut cmd = Command::new("cargo"); cmd.current_dir(metadata.crate_dir()); - cmd.arg("build") - .arg("--profile") - .arg(profile); + cmd.arg("build").arg("--profile").arg(profile); run_cmd_quietly(&mut cmd)?; Ok(()) }