remove redundant pattern matching
This commit is contained in:
parent
12ef9ce993
commit
6cb69bc63b
2 changed files with 2 additions and 2 deletions
|
|
@ -93,7 +93,7 @@ async fn start_listening(
|
|||
.unwrap_or_default()
|
||||
{
|
||||
if c.id().await.unwrap_or_default() == ssid {
|
||||
if let Ok(_) = network_manager.deactivate_connection(&c).await {
|
||||
if network_manager.deactivate_connection(&c).await.is_ok() {
|
||||
success = true;
|
||||
if let Ok(ActiveConnectionState::Deactivated) = c.state().await {
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue