Skip to content

Commit

Permalink
Run clippy, clean up dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
PKopel committed Nov 19, 2023
1 parent d3233dc commit 6eaf411
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 58 deletions.
58 changes: 1 addition & 57 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ chacha20poly1305 = { version = "0.10.1", features = ["heapless"] }
clap = { version = "4.4.8", features = ["derive"] }
image = "0.24.7"
imageproc = "0.23.0"
kdam = "0.5.0"
serde = { version = "1.0.192", features = ["derive"] }
serde_json = "1.0.108"

Expand Down
6 changes: 6 additions & 0 deletions src/lib/encryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ struct Key {
nonce: Vec<u8>,
}

impl Default for Cipher {
fn default() -> Self {
Self::new()
}
}

impl Cipher {
pub fn new() -> Self {
let key = ChaCha20Poly1305::generate_key(&mut OsRng);
Expand Down

0 comments on commit 6eaf411

Please sign in to comment.