From 87099fc57d66e20a21842fc0025bfbdcc37667de Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Thu, 19 Dec 2024 09:45:57 +0100 Subject: [PATCH] Format --- crates/ubrn_common/src/rust_crate.rs | 6 +----- xtask/src/run/rust_crate.rs | 4 +--- 2 files changed, 2 insertions(+), 8 deletions(-) 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(()) }