Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
matsadler committed Mar 26, 2020
1 parent b2788d7 commit a9f0a28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub(crate) fn name(service: Option<String>) -> Result<String, Error> {
debug!("Got service name {:?} from current dir", opt_s);
service = Some(opt_s.to_owned());
} else {
Err(Error::NotUnicode(os_str.to_owned()))?
return Err(Error::NotUnicode(os_str.to_owned()))
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/vault.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl FromStr for Secret {
impl fmt::Debug for Secret {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_tuple("Secret")
.field(&"*".repeat(self.0.len()).to_string())
.field(&"*".repeat(self.0.len()))
.finish()
}
}
Expand Down

0 comments on commit a9f0a28

Please sign in to comment.