diff --git a/src-tauri/build.rs b/src-tauri/build.rs index 795b9b7..d860e1e 100644 --- a/src-tauri/build.rs +++ b/src-tauri/build.rs @@ -1,3 +1,3 @@ fn main() { - tauri_build::build() + tauri_build::build() } diff --git a/src-tauri/src/auth.rs b/src-tauri/src/auth.rs index 648f7e4..9c54bac 100644 --- a/src-tauri/src/auth.rs +++ b/src-tauri/src/auth.rs @@ -13,7 +13,7 @@ pub fn authenticate(ctx: tauri::State) -> 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"), diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 36ef08c..23af978 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -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",