We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8215ea6 commit 932fb75Copy full SHA for 932fb75
crates/spk-schema/src/build_spec.rs
@@ -86,7 +86,7 @@ impl AutoHostVars {
86
distro_name = distro.clone();
87
match OptName::new(&distro_name) {
88
Ok(name) => {
89
- let mut var_opt = VarOpt::new(name.to_owned())?;
+ let mut var_opt = VarOpt::new(name)?;
90
// Look for any configured compat rules for the
91
// distro
92
let config = get_config()?;
@@ -118,7 +118,7 @@ impl AutoHostVars {
118
"No distro name set by host. A {}= will be used instead.",
119
OptName::unknown_distro()
120
);
121
- settings.push(Opt::Var(VarOpt::new(OptName::unknown_distro().to_owned())?));
+ settings.push(Opt::Var(VarOpt::new(OptName::unknown_distro())?));
122
}
123
124
0 commit comments