Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clippy warnings. #139

Merged
merged 1 commit into from Jul 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/mock.rs
Expand Up @@ -77,7 +77,7 @@ impl CredentialApi for MockCredential {
/// be cleared, so calling again will set the password.
fn set_password(&self, password: &str) -> Result<()> {
let mut inner = self.inner.lock().expect("Can't access mock data for set");
let mut data = inner.get_mut();
let data = inner.get_mut();
let err = data.error.take();
match err {
None => {
Expand Down Expand Up @@ -117,7 +117,7 @@ impl CredentialApi for MockCredential {
.inner
.lock()
.expect("Can't access mock data for delete");
let mut data = inner.get_mut();
let data = inner.get_mut();
let err = data.error.take();
match err {
None => match data.password {
Expand Down Expand Up @@ -158,7 +158,7 @@ impl MockCredential {
.inner
.lock()
.expect("Can't access mock data for set_error");
let mut data = inner.get_mut();
let data = inner.get_mut();
data.error = Some(err);
}
}
Expand Down