Skip to content

Commit

Permalink
*: address cargo clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsupark committed Oct 23, 2023
1 parent cfabe0e commit 00e5700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ impl AuthorizedKeys {

// destroy the old authorized keys file and move the staging one to that
// location
fs::rename(&stage_filename, &self.authorized_keys_file()).chain_err(|| {
fs::rename(&stage_filename, self.authorized_keys_file()).chain_err(|| {
format!(
"failed to move '{:?}' to '{:?}'",
stage_filename,
Expand Down Expand Up @@ -381,7 +381,7 @@ impl AuthorizedKeys {
/// files
fn read_all_keys(dir: &Path) -> Result<HashMap<String, AuthorizedKeySet>> {
let dir_contents =
fs::read_dir(&dir).chain_err(|| format!("failed to read from directory {:?}", dir))?;
fs::read_dir(dir).chain_err(|| format!("failed to read from directory {:?}", dir))?;
let mut keys = HashMap::new();
for entry in dir_contents {
let entry =
Expand Down

0 comments on commit 00e5700

Please sign in to comment.