diff --git a/src/helix/mod.rs b/src/helix/mod.rs index 80f966ea47..45834758b6 100644 --- a/src/helix/mod.rs +++ b/src/helix/mod.rs @@ -148,7 +148,7 @@ impl<'a, C: crate::HttpClient<'a>> HelixClient<'a, C> { /// # use twitch_api2::helix::{HelixClient, channels}; /// # let token = Box::new(twitch_oauth2::UserToken::from_existing_unchecked( /// # twitch_oauth2::AccessToken::new("totallyvalidtoken".to_string()), None, - /// # twitch_oauth2::ClientId::new("validclientid".to_string()), None, None, None)); + /// # twitch_oauth2::ClientId::new("validclientid".to_string()), None, None, None, None)); /// let req = channels::GetChannelInformationRequest::builder().broadcaster_id("123456").build(); /// let client = HelixClient::new(); /// # let _: &HelixClient = &client; diff --git a/src/lib.rs b/src/lib.rs index 85d1055752..22c15df2c9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,6 @@ -#![allow(unknown_lints)] // remove once broken_intra_doc_links is on stable -#![deny(missing_docs, broken_intra_doc_links)] +#![allow(unknown_lints, renamed_and_removed_lints)] +#![deny(missing_docs, broken_intra_doc_links)] // This will be weird until 1.52, see https://github.com/rust-lang/rust/pull/80527 +#![cfg_attr(nightly, deny(rustdoc::broken_intra_doc_links))] #![cfg_attr(nightly, feature(doc_cfg, doc_spotlight))] #![doc(html_root_url = "https://docs.rs/twitch_api2/0.4.1")] #![cfg_attr(all(nightly, doctest), feature(external_doc))] diff --git a/src/pubsub/mod.rs b/src/pubsub/mod.rs index 8767cbdb28..162f2ffef0 100644 --- a/src/pubsub/mod.rs +++ b/src/pubsub/mod.rs @@ -106,7 +106,7 @@ pub trait Topic: Serialize + Into { /// style="display: inline; border-radius: 3px; padding: 2px; font-size: 80%; line-height: 1.2;" /// >unsupported #[cfg(feature = "twitch_oauth2")] - #[cfg_attr(nightly, doc(feature = "twitch_oauth2"))] + #[cfg_attr(nightly, doc(cfg(feature = "twitch_oauth2")))] const SCOPE: &'static [twitch_oauth2::Scope]; } diff --git a/twitch_oauth2 b/twitch_oauth2 index d199dc3780..0907253396 160000 --- a/twitch_oauth2 +++ b/twitch_oauth2 @@ -1 +1 @@ -Subproject commit d199dc378024158ff7dbcdac445f66d5fa19009d +Subproject commit 0907253396f5aaaaf9db4788fd4170f7ba236c73