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.
mut
1 parent 6fe9aa9 commit 53e1f82Copy full SHA for 53e1f82
lib/src/kargs.rs
@@ -64,9 +64,8 @@ pub(crate) fn get_kargs(
64
// Get the running kargs of the booted system
65
if let Some(bootconfig) = ostree::Deployment::bootconfig(booted_deployment) {
66
if let Some(options) = ostree::BootconfigParser::get(&bootconfig, "options") {
67
- let options: Vec<&str> = options.split_whitespace().collect();
68
- let mut options: Vec<String> = options.into_iter().map(|s| s.to_string()).collect();
69
- kargs.append(&mut options);
+ let options = options.split_whitespace().map(|s| s.to_owned());
+ kargs.extend(options);
70
}
71
};
72
0 commit comments