Format all code following migration to Rust edition 2024
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-28 10:23:37 +01:00
parent 44188975ca
commit e9e3103938
20 changed files with 41 additions and 32 deletions

View File

@ -49,7 +49,9 @@ pub async fn sub_main() -> anyhow::Result<()> {
let args = NatArgs::parse();
if !args.network_file().exists() {
log::warn!("Cannot do anything for the network, because the NAT configuration file does not exixsts!");
log::warn!(
"Cannot do anything for the network, because the NAT configuration file does not exixsts!"
);
return Ok(());
}
@ -184,7 +186,9 @@ fn toggle_port_forwarding(
false => "tcp",
};
log::info!("Forward (add={enable}) incoming {protocol} connections for {host_ip}:{host_port} to {guest_ip}:{guest_port} int {net_interface}");
log::info!(
"Forward (add={enable}) incoming {protocol} connections for {host_ip}:{host_port} to {guest_ip}:{guest_port} int {net_interface}"
);
// Rule 1
let cmd = Command::new(program)