Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
shellrow committed May 18, 2024
1 parent 70ca0a4 commit 1369431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interface/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ pub fn get_interface_type(if_name: String) -> InterfaceType {
// further check if the interface is actually Wi-Fi.
if is_wifi_interface(&if_name) {
return InterfaceType::Wireless80211;
}else{
} else {
return InterfaceType::Ethernet;
}
}else {
} else {
return InterfaceType::try_from(if_type).unwrap_or(InterfaceType::Unknown);
}
}
Expand Down

0 comments on commit 1369431

Please sign in to comment.