Skip to content

Commit e7c2fa2

Browse files
committed
Derive Default for Profile
1 parent 06fd61a commit e7c2fa2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/dist/dist.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -600,9 +600,10 @@ impl TryFrom<&ToolchainName> for ToolchainDesc {
600600
}
601601
}
602602

603-
#[derive(Debug, Clone, Copy, Hash, Eq, PartialEq)]
603+
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
604604
pub enum Profile {
605605
Minimal,
606+
#[default]
606607
Default,
607608
Complete,
608609
}
@@ -634,12 +635,6 @@ impl Profile {
634635
}
635636
}
636637

637-
impl Default for Profile {
638-
fn default() -> Self {
639-
Self::Default
640-
}
641-
}
642-
643638
impl fmt::Display for TargetTriple {
644639
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
645640
self.0.fmt(f)

0 commit comments

Comments
 (0)