We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8815103 commit 8518d2bCopy full SHA for 8518d2b
src/bootstrap/setup.rs
@@ -82,13 +82,7 @@ impl FromStr for Profile {
82
83
impl fmt::Display for Profile {
84
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
85
- match self {
86
- Profile::Compiler => write!(f, "compiler"),
87
- Profile::Codegen => write!(f, "codegen"),
88
- Profile::Library => write!(f, "library"),
89
- Profile::User => write!(f, "user"),
90
- Profile::Tools => write!(f, "tools"),
91
- }
+ f.write_str(self.as_str())
92
}
93
94
0 commit comments