Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
direc85 committed May 25, 2024
1 parent d7aec37 commit 741611d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions libsignal-service/examples/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ use libsignal_service::protocol::{

pub struct ExampleStore {}

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

impl ExampleStore {
pub fn new() -> Self {
Self {}
Expand Down
4 changes: 2 additions & 2 deletions libsignal-service/src/account_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -894,11 +894,11 @@ mod tests {
let device_name = super::encrypt_device_name(
&mut csprng,
input_device_name,
&identity.identity_key(),
identity.identity_key(),
)?;

let decrypted_device_name =
super::decrypt_device_name(&identity.private_key(), &device_name)?;
super::decrypt_device_name(identity.private_key(), &device_name)?;

assert_eq!(input_device_name, decrypted_device_name);

Expand Down

0 comments on commit 741611d

Please sign in to comment.