Also feature-gate doc test for #170

This commit is contained in:
Lewin Bormann
2022-03-22 18:31:39 +01:00
parent 35a3117047
commit 95d46f53b8

View File

@@ -363,6 +363,7 @@ where
/// Create an authenticator that uses an authorized user credentials.
/// ```
/// # #[cfg(any(feature = "hyper-rustls", feature = "hyper-tls"))]
/// # async fn foo() {
/// # use yup_oauth2::authenticator::AuthorizedUserAuthenticator;
/// # let secret = yup_oauth2::read_authorized_user_secret("/tmp/foo").await.unwrap();