Skip to content

Commit

Permalink
Fix compilation for macOS target
Browse files Browse the repository at this point in the history
We need #[allow(unused_mut)], to disable warnings on other targets.

Signed-off-by: Matej Hrica <[email protected]>
  • Loading branch information
mtjhrc committed Nov 2, 2023
1 parent ced22ac commit 38e1e5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ fn export_container_config(
}

pub fn create(cfg: &mut KrunvmConfig, matches: &ArgMatches) {
let cpus = match matches.value_of("cpus") {
#[allow(unused_mut)]
let mut cpus = match matches.value_of("cpus") {
Some(c) => match c.parse::<u32>() {
Err(_) => {
println!("Invalid value for \"cpus\"");
Expand Down

0 comments on commit 38e1e5c

Please sign in to comment.