Skip to content

Commit d28fb2c

Browse files
committed
formatting and linting
1 parent 4813d22 commit d28fb2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/home.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ impl HomeRebuildArgs {
7272
let spec_location =
7373
PathBuf::from(std::env::var("HOME")?).join(".local/share/home-manager/specialisation");
7474

75-
let current_specialisation = std::fs::read_to_string(&spec_location.to_str().unwrap()).ok();
75+
let current_specialisation = std::fs::read_to_string(spec_location.to_str().unwrap()).ok();
7676

7777
let target_specialisation = if self.no_specialisation {
7878
None
7979
} else {
80-
current_specialisation.or_else(|| self.specialisation)
80+
current_specialisation.or(self.specialisation)
8181
};
8282

8383
debug!("target_specialisation: {target_specialisation:?}");

0 commit comments

Comments
 (0)