Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Deaths-Door committed Sep 1, 2024
1 parent 85c2a7a commit 5e1c2dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mini.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,17 +454,16 @@ mod test {
fn mini_cocoon_clone() {
let mut cocoon = MiniCocoon::from_password(b"password", &[0; 32]);
let cloned_cocoon = cocoon.clone();
const DATA : &'static [u8]= b"my-sercet-data";
const DATA: &'static [u8] = b"my-sercet-data";

// To check whether MiniCocoon gets cloned properly
let wrapped = cocoon.wrap(DATA).unwrap();
drop(cocoon);

let unwrapped = cloned_cocoon.unwrap(&wrapped).unwrap();
assert_eq!(&unwrapped,DATA);
assert_eq!(&unwrapped, DATA);
}


#[test]
fn mini_cocoon_encrypt() {
let mut cocoon = MiniCocoon::from_password(b"password", &[0; 32]);
Expand Down

0 comments on commit 5e1c2dd

Please sign in to comment.