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

@ -5,7 +5,6 @@ use getrandom::Error as RngError;
#[derive(Debug)]
pub enum Error {
#[cfg(feature = "scram")]
#[cfg_attr(docsrs, doc(cfg(feature = "scram")))]
/// An error while initializing the Rng.
RngError(RngError),
/// An error in a SASL mechanism.
@ -13,7 +12,6 @@ pub enum Error {
}
#[cfg(feature = "scram")]
#[cfg_attr(docsrs, doc(cfg(feature = "scram")))]
impl From<RngError> for Error {
fn from(err: RngError) -> Error {
Error::RngError(err)