Skip to content

Commit ef4b78d

Browse files
authored
signature: allow AFIT globally (#1830)
1 parent 18325fd commit ef4b78d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

signature/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
)]
77
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
88
#![forbid(unsafe_code)]
9+
#![allow(async_fn_in_trait)]
910
#![warn(
1011
clippy::mod_module_files,
1112
clippy::unwrap_used,

signature/src/signer.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ impl<S, T: RandomizedSigner<S>> RandomizedSignerMut<S> for T {
189189
/// (e.g. client for a Cloud KMS or HSM), returning a digital signature.
190190
///
191191
/// This trait is an async equivalent of the [`Signer`] trait.
192-
#[allow(async_fn_in_trait)]
193192
pub trait AsyncSigner<S> {
194193
/// Attempt to sign the given message, returning a digital signature on
195194
/// success, or an error if something went wrong.
@@ -212,7 +211,6 @@ where
212211
///
213212
/// This trait is an async equivalent of the [`DigestSigner`] trait.
214213
#[cfg(feature = "digest")]
215-
#[allow(async_fn_in_trait)]
216214
pub trait AsyncDigestSigner<D, S>
217215
where
218216
D: Digest,
@@ -224,7 +222,6 @@ where
224222

225223
/// Sign the given message using the provided external randomness source.
226224
#[cfg(feature = "rand_core")]
227-
#[allow(async_fn_in_trait)]
228225
pub trait AsyncRandomizedSigner<S> {
229226
/// Sign the given message and return a digital signature
230227
async fn sign_with_rng_async<R: CryptoRng + ?Sized>(&self, rng: &mut R, msg: &[u8]) -> S {

0 commit comments

Comments
 (0)