Skip to content

Commit

Permalink
chore(cleanup): apply clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chirpcel committed Jan 4, 2025
1 parent c9d614e commit 7b4e72b
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions asyncgit/src/sync/sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl SignBuilder {
)
})
.and_then(|signing_key| {
SignBuilder::signing_key_into_path(
Self::signing_key_into_path(
&signing_key,
)
})?;
Expand All @@ -187,15 +187,13 @@ impl SignBuilder {
let key_path = PathBuf::from(signing_key);
if key_path.is_file() {
Ok(key_path)
} else {
if signing_key.starts_with("ssh-") {
Ok(key_path) //TODO: write key to temp file
} else {
Err(SignBuilderError::SSHSigningKey(String::from(
"ssh key could not be resolve. Either the key is not a file or the key is not a valid public ssh key",
)))
}
}
} else if signing_key.starts_with("ssh-") {
Ok(key_path) //TODO: write key to temp file
} else {
Err(SignBuilderError::SSHSigningKey(String::from(
"ssh key could not be resolve. Either the key is not a file or the key is not a valid public ssh key",
)))
}
}
}

Expand Down

0 comments on commit 7b4e72b

Please sign in to comment.