Skip to content

Commit

Permalink
Merge pull request #139 from landhb/clippy_fixes
Browse files Browse the repository at this point in the history
Thanks to @landhb for this cleanup!
  • Loading branch information
brotskydotcom committed Jul 24, 2023
2 parents 1496e69 + 12178f8 commit 7ebe977
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 7ebe977

Please sign in to comment.