Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth committed Jul 11, 2024
1 parent 5bb6ae0 commit 5342aa3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/encrypted_sled/kv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ impl EncryptedDb {
}

/// create a new [EncryptedRecord] containing an encrypted value and a given nonce.
fn encrypt_with_nonce<V>(&self, value: V, nonce: chacha20poly1305::XNonce) -> EncryptedDbResult<EncryptedRecord>
fn encrypt_with_nonce<V>(
&self,
value: V,
nonce: chacha20poly1305::XNonce,
) -> EncryptedDbResult<EncryptedRecord>
where
V: Into<IVec>,
{
Expand Down Expand Up @@ -201,7 +205,7 @@ impl EncryptedDb {

#[cfg(test)]
mod tests {
use chacha20poly1305::{XChaCha20Poly1305, XNonce, KeyInit};
use chacha20poly1305::{KeyInit, XChaCha20Poly1305, XNonce};

use super::EncryptedDb;
use crate::encrypted_sled::{password::PasswordSalt, Password};
Expand Down

0 comments on commit 5342aa3

Please sign in to comment.