Remove manual doc_cfg feature because we have doc_auto_cfg

This commit is contained in:
xmppftw xmppftw 2024-08-04 22:52:28 +02:00
commit 2103ef0191
10 changed files with 1 additions and 28 deletions

View file

@ -23,7 +23,6 @@ pub struct Pbkdf2Sha1 {
impl Pbkdf2Sha1 {
#[cfg(feature = "scram")]
#[cfg_attr(docsrs, doc(cfg(feature = "scram")))]
pub fn derive(password: &str, salt: &[u8], iterations: u32) -> Result<Pbkdf2Sha1, DeriveError> {
use crate::common::scram::{ScramProvider, Sha1};
use crate::common::Password;
@ -59,7 +58,6 @@ pub struct Pbkdf2Sha256 {
impl Pbkdf2Sha256 {
#[cfg(feature = "scram")]
#[cfg_attr(docsrs, doc(cfg(feature = "scram")))]
pub fn derive(
password: &str,
salt: &[u8],