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:
Maximiliano Sandoval 2024-06-26 14:43:32 +02:00 committed by Wolfgang Bumiller
parent aff76f9e0e
commit 18dda8106b
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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
}