Fix rust lints

This commit is contained in:
Rūdolfs Ošiņš
2024-09-02 14:59:52 +02:00
parent 397b35ffe0
commit b68a31feba
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
fn main() {
tauri_build::build()
tauri_build::build()
}
+1 -1
View File
@@ -13,7 +13,7 @@ pub fn authenticate(ctx: tauri::State<AppState>) -> Result<(), Error> {
match ssh::agent::Agent::connect() {
Ok(mut agent) => {
if agent.request_identities()?.contains(&profile.public_key) {
return Ok(());
Ok(())
} else {
Err(Error::WithHint {
err: anyhow!("Not able to find your keys in the ssh agent"),
+1 -2
View File
@@ -17,8 +17,7 @@ pub fn run() {
Err(radicle::profile::Error::NotFound(path)) => Err(error::Error::WithHint {
err: anyhow::anyhow!("Radicle profile not found in '{}'.", path.display()),
hint: "To setup your radicle profile, run `rad auth`.",
}
.into()),
}),
Err(e) => Err(error::Error::WithHint {
err: e.into(),
hint: "Could not load radicle profile",