Skip to content

Commit

Permalink
Merge pull request #5 from xiaocq2001/chxiao/auth_support
Browse files Browse the repository at this point in the history
Fix compile warnings.
  • Loading branch information
xiaocq2001 authored Jun 14, 2024
2 parents 8b349fc + 2c0a896 commit 0c5783e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions rumqttc/src/v5/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,7 @@ impl MqttOptions {
}

pub fn auth_manager(&self) -> Option<Arc<Mutex<dyn AuthManager>>> {
if self.auth_manager.is_none() {
return None;
}
self.auth_manager.as_ref()?;

self.auth_manager.clone()
}
Expand Down
2 changes: 1 addition & 1 deletion rumqttc/src/v5/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ impl MqttState {

self.outgoing_auth(client_auth)
}
_ => return Err(StateError::AuthError("Authentication Failed!".to_string())),
_ => Err(StateError::AuthError("Authentication Failed!".to_string())),
}
}

Expand Down

0 comments on commit 0c5783e

Please sign in to comment.