Skip to content

Commit

Permalink
Fix rust lints
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfs committed Sep 2, 2024
1 parent 397b35f commit b68a31f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src-tauri/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fn main() {
tauri_build::build()
tauri_build::build()
}
2 changes: 1 addition & 1 deletion src-tauri/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
3 changes: 1 addition & 2 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b68a31f

Please sign in to comment.