Skip to content

Commit 5f8367a

Browse files
fix lint
1 parent c5027fd commit 5f8367a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/kos-web/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ pub fn decrypt(data: &[u8], password: &str) -> Result<Vec<u8>, Error> {
4141
/// Data will have the algorithm tag prepended to it (1 byte).
4242
#[wasm_bindgen(js_name = "encrypt")]
4343
pub fn encrypt(data: &[u8], password: &str) -> Result<Vec<u8>, Error> {
44-
cipher::encrypt(cipher::CipherAlgo::GMC, data, password).map_err(|e| Error::Cipher(format!("{}", e)))
44+
cipher::encrypt(cipher::CipherAlgo::GMC, data, password)
45+
.map_err(|e| Error::Cipher(format!("{}", e)))
4546
}
4647

4748
/// Create pem file from tag and data

0 commit comments

Comments
 (0)