From db8af899d567ca3b34e87de1767bb6761df59e9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Gardstr=C3=B6m?= Date: Fri, 5 Mar 2021 23:55:50 +0100 Subject: [PATCH 1/3] bump twitch_oauth2 --- twitch_oauth2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 0cac975639aabe9a22bb0295d875b6b1509b922f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Gardstr=C3=B6m?= Date: Fri, 5 Mar 2021 23:57:40 +0100 Subject: [PATCH 2/3] fix lint error --- src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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))] From fbffdf81962633c23aad2ebfc7d510fae6563f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Gardstr=C3=B6m?= Date: Sat, 6 Mar 2021 00:10:41 +0100 Subject: [PATCH 3/3] fix ci errors --- src/helix/mod.rs | 2 +- src/pubsub/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/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]; }