Skip to content

Commit

Permalink
chore: apply rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdward162 committed May 8, 2024
1 parent a57cbaf commit a70493b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espflash/src/cli/serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ fn detect_usb_serial_ports(_list_all_ports: bool) -> Result<Vec<SerialPortInfo>>
// In case of `/dev/*` we transform them into `/sys/class/tty/*`
let path = match AsRef::<Path>::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:
Expand Down

0 comments on commit a70493b

Please sign in to comment.