Skip to content

Commit 5d5a7ef

Browse files
committed
derive default for FallbackSettings
Signed-off-by: hi-rustin <[email protected]>
1 parent 0e163d2 commit 5d5a7ef

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/fallback_settings.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,11 @@ use anyhow::{Context, Result};
66

77
use crate::utils::utils;
88

9-
#[derive(Clone, Debug, Deserialize, PartialEq)]
9+
#[derive(Clone, Debug, Deserialize, PartialEq, Default)]
1010
pub struct FallbackSettings {
1111
pub default_toolchain: Option<String>,
1212
}
1313

14-
impl Default for FallbackSettings {
15-
fn default() -> Self {
16-
Self {
17-
default_toolchain: None,
18-
}
19-
}
20-
}
21-
2214
impl FallbackSettings {
2315
pub(crate) fn new<P: AsRef<Path>>(path: P) -> Result<Option<Self>> {
2416
// Users cannot fix issues with missing/unreadable/invalid centralised files, but logging isn't setup early so

0 commit comments

Comments
 (0)