Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Johennes committed Dec 19, 2024
1 parent dd20e43 commit 87099fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 1 addition & 5 deletions crates/ubrn_common/src/rust_crate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 1 addition & 3 deletions xtask/src/run/rust_crate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

0 comments on commit 87099fc

Please sign in to comment.