Skip to content

Commit 7349f63

Browse files
committed
fix new clippy warning
1 parent bd6764f commit 7349f63

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,19 +1273,14 @@ fn split_string(value: &str) -> Vec<String> {
12731273
}
12741274
}
12751275

1276-
#[derive(Debug, PartialEq)]
1276+
#[derive(Debug, PartialEq, Default)]
12771277
enum BuildInternal {
12781278
Auto,
12791279
Always,
1280+
#[default]
12801281
Never,
12811282
}
12821283

1283-
impl Default for BuildInternal {
1284-
fn default() -> Self {
1285-
Self::Never
1286-
}
1287-
}
1288-
12891284
impl FromStr for BuildInternal {
12901285
type Err = ParseError;
12911286

0 commit comments

Comments
 (0)