remove unnecesary pub(self)
Fixes the clippy warning: warning: unnecessary `pub(self)` --> proxmox-tfa/src/api/mod.rs:1268:1 | 1268 | pub(self) fn bool_is_false(v: &bool) -> bool { | ^^^^^^^^^ help: remove it | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pub_self Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
aff76f9e0e
commit
18dda8106b
@ -86,7 +86,7 @@ impl PrivateKey {
|
||||
PublicKey::from_pem(&self.public_key_to_pem()?)
|
||||
}
|
||||
|
||||
pub(self) fn sign(&self, digest: MessageDigest, data: &[u8]) -> Result<Vec<u8>, Error> {
|
||||
fn sign(&self, digest: MessageDigest, data: &[u8]) -> Result<Vec<u8>, Error> {
|
||||
let mut signer = if self.key.id() == Id::ED25519 {
|
||||
// ed25519 does not support signing with digest
|
||||
Signer::new_without_digest(&self.key)
|
||||
|
@ -75,7 +75,7 @@ pub trait OpenUserChallengeData {
|
||||
}
|
||||
}
|
||||
|
||||
pub(self) struct NoUserData;
|
||||
struct NoUserData;
|
||||
|
||||
impl OpenUserChallengeData for NoUserData {
|
||||
fn open(&self, _userid: &str) -> Result<Box<dyn UserChallengeAccess>, Error> {
|
||||
@ -1265,7 +1265,7 @@ impl TfaChallenge {
|
||||
}
|
||||
}
|
||||
|
||||
pub(self) fn bool_is_false(v: &bool) -> bool {
|
||||
fn bool_is_false(v: &bool) -> bool {
|
||||
!v
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user