Prepare, configure, and manage Firecracker microVMs in seconds!
virtualization linux microvm firecracker

run cargo fmt

+2 -10
+2 -10
crates/firecracker-up/src/cmd/cp.rs
··· 34 34 let key_path = get_private_key_path()?; 35 35 36 36 let scp_args = if from.contains(':') { 37 - let remote_path = format!( 38 - "root@{}:{}", 39 - guest_ip, 40 - from.splitn(2, ':').nth(1).unwrap() 41 - ); 37 + let remote_path = format!("root@{}:{}", guest_ip, from.splitn(2, ':').nth(1).unwrap()); 42 38 vec!["-r", remote_path.as_str(), to] 43 39 .iter() 44 40 .map(|s| s.to_string()) 45 41 .collect::<Vec<String>>() 46 42 } else { 47 - let remote_path = format!( 48 - "root@{}:{}", 49 - guest_ip, 50 - to.splitn(2, ':').nth(1).unwrap() 51 - ); 43 + let remote_path = format!("root@{}:{}", guest_ip, to.splitn(2, ':').nth(1).unwrap()); 52 44 vec!["-r", from, remote_path.as_str()] 53 45 .iter() 54 46 .map(|s| s.to_string())