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 4813d22 commit d28fb2cCopy full SHA for d28fb2c
src/home.rs
@@ -72,12 +72,12 @@ impl HomeRebuildArgs {
72
let spec_location =
73
PathBuf::from(std::env::var("HOME")?).join(".local/share/home-manager/specialisation");
74
75
- let current_specialisation = std::fs::read_to_string(&spec_location.to_str().unwrap()).ok();
+ let current_specialisation = std::fs::read_to_string(spec_location.to_str().unwrap()).ok();
76
77
let target_specialisation = if self.no_specialisation {
78
None
79
} else {
80
- current_specialisation.or_else(|| self.specialisation)
+ current_specialisation.or(self.specialisation)
81
};
82
83
debug!("target_specialisation: {target_specialisation:?}");
0 commit comments