Skip to content

Commit

Permalink
clean up some new clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
madninja committed Mar 26, 2024
1 parent a6da644 commit de3951e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
6 changes: 1 addition & 5 deletions src/ecc_compact/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ use p256::{
elliptic_curve::{ecdh, sec1::ToCompactEncodedPoint, DecompactPoint},
FieldBytes,
};
use std::{
convert::TryFrom,
hash::{Hash, Hasher},
ops::Deref,
};
use std::{hash::Hasher, ops::Deref};

#[derive(Debug, Clone)]
pub struct PublicKey(pub(crate) p256::PublicKey);
Expand Down
5 changes: 1 addition & 4 deletions src/ed25519/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
use crate::*;
use std::{
convert::TryFrom,
hash::{Hash, Hasher},
};
use std::hash::Hasher;

#[derive(Debug, Clone)]
pub struct PublicKey(pub(crate) ed25519_compact::PublicKey);
Expand Down
1 change: 0 additions & 1 deletion src/public_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//! since a client will need to be able to parse and use a public key from any
//! keypair.
use crate::*;
use std::{convert::TryFrom, hash::Hash};

///Verify a given message against a given signature slice. Public keys are
///expected to implemt this trait to verify signed messages.
Expand Down
5 changes: 1 addition & 4 deletions src/secp256k1/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use crate::*;
use base64::{engine::general_purpose::STANDARD, Engine};
use k256::{ecdsa, elliptic_curve::sec1::ToEncodedPoint};
use std::{
convert::TryFrom,
hash::{Hash, Hasher},
};
use std::hash::Hasher;
use thiserror::Error;

#[derive(Debug, Clone)]
Expand Down

0 comments on commit de3951e

Please sign in to comment.