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: