Skip to content

Commit 744c26c

Browse files
committed
Fix clippy errors
1 parent 4d4c67a commit 744c26c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

crates/bitwarden-uniffi/src/error.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ pub enum Error {
7878
Fido2Client(#[from] bitwarden_fido::Fido2ClientError),
7979

8080
#[error(transparent)]
81-
SshGenerationError(#[from] bitwarden_ssh::error::KeyGenerationError),
81+
SshGeneration(#[from] bitwarden_ssh::error::KeyGenerationError),
8282
#[error(transparent)]
83-
SshImportError(#[from] bitwarden_ssh::error::SshKeyImportError),
84-
#[error(transparent)]
85-
SshExportError(#[from] bitwarden_ssh::error::SshKeyExportError),
83+
SshImport(#[from] bitwarden_ssh::error::SshKeyImportError),
8684
}

crates/bitwarden-uniffi/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl Client {
9494
key_algorithm: bitwarden_ssh::generator::KeyAlgorithm,
9595
) -> Result<bitwarden_ssh::SshKey> {
9696
bitwarden_ssh::generator::generate_sshkey(key_algorithm)
97-
.map_err(|e| error::BitwardenError::E(error::Error::SshGenerationError(e)))
97+
.map_err(|e| error::BitwardenError::E(error::Error::SshGeneration(e)))
9898
}
9999

100100
pub fn import_ssh_key(
@@ -103,7 +103,7 @@ impl Client {
103103
password: Option<String>,
104104
) -> Result<bitwarden_ssh::SshKey> {
105105
bitwarden_ssh::import::import_key(imported_key, password)
106-
.map_err(|e| error::BitwardenError::E(error::Error::SshImportError(e)))
106+
.map_err(|e| error::BitwardenError::E(error::Error::SshImport(e)))
107107
}
108108
}
109109

0 commit comments

Comments
 (0)