Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix rust lints
Rūdolfs Ošiņš committed 1 year ago
commit b68a31feba9d094f562eacd24eace57c5773362e
parent 397b35ffe0665da989ac5b23df0e1f9554620e8e
3 files changed +3 -4
modified src-tauri/build.rs
@@ -1,3 +1,3 @@
fn main() {
-
  tauri_build::build()
+
    tauri_build::build()
}
modified src-tauri/src/auth.rs
@@ -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"),
modified 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",