From a70493bc3cb45e0de095db7e30b9cc7be6e47a8d Mon Sep 17 00:00:00 2001 From: TheEdward162 Date: Wed, 8 May 2024 21:36:56 +0200 Subject: [PATCH] chore: apply rustfmt --- espflash/src/cli/serial.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/espflash/src/cli/serial.rs b/espflash/src/cli/serial.rs index da019c93..993efd5d 100644 --- a/espflash/src/cli/serial.rs +++ b/espflash/src/cli/serial.rs @@ -124,7 +124,7 @@ fn detect_usb_serial_ports(_list_all_ports: bool) -> Result> // In case of `/dev/*` we transform them into `/sys/class/tty/*` let path = match AsRef::::as_ref(&port_info.port_name).strip_prefix("/dev/") { Ok(rem) => PathBuf::from("/sys/class/tty/").join(rem), - Err(_) => PathBuf::from(&port_info.port_name) + Err(_) => PathBuf::from(&port_info.port_name), }; // This will give something like: