Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
schaefi committed Feb 1, 2025
1 parent 377fe3d commit 59beb6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion firecracker-pilot/guestvm-tools/sci/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ fn main() {
if do_exec {
// replace ourselves
debug(&format!("EXEC: {} -> {:?}", &args[0], call.get_args()));
call.exec();
let _ = call.exec();
} else {
// call a command and keep control
debug(&format!(
Expand Down
4 changes: 2 additions & 2 deletions podman-pilot/src/podman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ pub fn create(
}

// create the container with configured runtime arguments
let var_pattern = Regex::new(r"%([A-Z]+)").unwrap();
for arg in podman.iter().flatten().flat_map(|x| x.splitn(2, ' ')) {
let mut arg_value = arg.to_string();
let var_pattern = Regex::new(r"%([A-Z]+)").unwrap();
while var_pattern.captures(&arg_value.clone()).is_some() {
for capture in var_pattern.captures_iter(&arg_value.clone()) {
// replace %VAR placeholder(s) with the respective
Expand Down Expand Up @@ -462,7 +462,7 @@ pub fn start(program_name: &str, cid: &str) -> Result<(), FlakeError> {
let user = User::from(current_user.to_str().unwrap());

let is_running = container_running(cid, user)?;
let is_created = container_exists(&cid, user)?;
let is_created = container_exists(cid, user)?;
let mut is_removed = false;

if is_running {
Expand Down

0 comments on commit 59beb6c

Please sign in to comment.