Skip to content

Commit

Permalink
Fix unwanted STD usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Jan 12, 2024
1 parent 41e9cbc commit 69a9ee7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/wifi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,7 @@ impl From<Newtype<wifi_sta_config_t>> for ClientConfiguration {
} else {
None
},
auth_method: <Newtype<u32> as std::convert::Into<Option<AuthMethod>>>::into(Newtype(
conf.0.threshold.authmode,
))
.unwrap(),
auth_method: Option::<AuthMethod>::from(Newtype(conf.0.threshold.authmode)).unwrap(),
password: from_cstr(&conf.0.password).try_into().unwrap(),
channel: if conf.0.channel != 0 {
Some(conf.0.channel)
Expand Down

0 comments on commit 69a9ee7

Please sign in to comment.