Skip to content

Commit

Permalink
Update src/profile.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Marijn Suijten <[email protected]>
  • Loading branch information
dvc94ch and MarijnS95 authored Mar 25, 2022
1 parent d361169 commit 6f6abbc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ pub enum Profile {

impl std::fmt::Display for Profile {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Dev => write!(f, "dev"),
Self::Release => write!(f, "release"),
Self::Custom(custom) => write!(f, "{}", custom),
}
f.write_str(match self {
Self::Dev => "dev",
Self::Release => "release",
Self::Custom(custom) => custom,
})
}
}

Expand Down

0 comments on commit 6f6abbc

Please sign in to comment.