Skip to content

Commit c5bab37

Browse files
Merge #84
84: bump twitch_oauth2 and fix lint error r=Emilgardis a=Emilgardis bors r+ Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
2 parents b32e4fa + fbffdf8 commit c5bab37

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/helix/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl<'a, C: crate::HttpClient<'a>> HelixClient<'a, C> {
148148
/// # use twitch_api2::helix::{HelixClient, channels};
149149
/// # let token = Box::new(twitch_oauth2::UserToken::from_existing_unchecked(
150150
/// # twitch_oauth2::AccessToken::new("totallyvalidtoken".to_string()), None,
151-
/// # twitch_oauth2::ClientId::new("validclientid".to_string()), None, None, None));
151+
/// # twitch_oauth2::ClientId::new("validclientid".to_string()), None, None, None, None));
152152
/// let req = channels::GetChannelInformationRequest::builder().broadcaster_id("123456").build();
153153
/// let client = HelixClient::new();
154154
/// # let _: &HelixClient<twitch_api2::DummyHttpClient> = &client;

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
#![allow(unknown_lints)] // remove once broken_intra_doc_links is on stable
2-
#![deny(missing_docs, broken_intra_doc_links)]
1+
#![allow(unknown_lints, renamed_and_removed_lints)]
2+
#![deny(missing_docs, broken_intra_doc_links)] // This will be weird until 1.52, see https://github.com/rust-lang/rust/pull/80527
3+
#![cfg_attr(nightly, deny(rustdoc::broken_intra_doc_links))]
34
#![cfg_attr(nightly, feature(doc_cfg, doc_spotlight))]
45
#![doc(html_root_url = "https://docs.rs/twitch_api2/0.4.1")]
56
#![cfg_attr(all(nightly, doctest), feature(external_doc))]

src/pubsub/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ pub trait Topic: Serialize + Into<String> {
106106
/// style="display: inline; border-radius: 3px; padding: 2px; font-size: 80%; line-height: 1.2;"
107107
/// ><code>unsupported</code></span>
108108
#[cfg(feature = "twitch_oauth2")]
109-
#[cfg_attr(nightly, doc(feature = "twitch_oauth2"))]
109+
#[cfg_attr(nightly, doc(cfg(feature = "twitch_oauth2")))]
110110
const SCOPE: &'static [twitch_oauth2::Scope];
111111
}
112112

0 commit comments

Comments
 (0)