Skip to content

Commit 7b4e72b

Browse files
committed
chore(cleanup): apply clippy fixes
1 parent c9d614e commit 7b4e72b

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

asyncgit/src/sync/sign.rs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl SignBuilder {
167167
)
168168
})
169169
.and_then(|signing_key| {
170-
SignBuilder::signing_key_into_path(
170+
Self::signing_key_into_path(
171171
&signing_key,
172172
)
173173
})?;
@@ -187,15 +187,13 @@ impl SignBuilder {
187187
let key_path = PathBuf::from(signing_key);
188188
if key_path.is_file() {
189189
Ok(key_path)
190-
} else {
191-
if signing_key.starts_with("ssh-") {
192-
Ok(key_path) //TODO: write key to temp file
193-
} else {
194-
Err(SignBuilderError::SSHSigningKey(String::from(
195-
"ssh key could not be resolve. Either the key is not a file or the key is not a valid public ssh key",
196-
)))
197-
}
198-
}
190+
} else if signing_key.starts_with("ssh-") {
191+
Ok(key_path) //TODO: write key to temp file
192+
} else {
193+
Err(SignBuilderError::SSHSigningKey(String::from(
194+
"ssh key could not be resolve. Either the key is not a file or the key is not a valid public ssh key",
195+
)))
196+
}
199197
}
200198
}
201199

0 commit comments

Comments
 (0)