Skip to content

Commit

Permalink
fix(http, model): Fix nightly compiler and rustdoc warnings (#2368)
Browse files Browse the repository at this point in the history
This would cause our rustdoc CI to fail since it runs on nightly.

Signed-off-by: Jens Reidel <adrian@travitia.xyz>
  • Loading branch information
Gelbpunkt authored Sep 4, 2024
1 parent 5ae72bc commit d46d0cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions twilight-http/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1873,7 +1873,7 @@ impl Client {
&'a self,
channel_id: Id<ChannelMarker>,
name: &'a str,
) -> CreateForumThread<'_> {
) -> CreateForumThread<'a> {
CreateForumThread::new(self, channel_id, name)
}

Expand All @@ -1900,7 +1900,7 @@ impl Client {
channel_id: Id<ChannelMarker>,
name: &'a str,
kind: ChannelType,
) -> CreateThread<'_> {
) -> CreateThread<'a> {
CreateThread::new(self, channel_id, name, kind)
}

Expand Down Expand Up @@ -1936,7 +1936,7 @@ impl Client {
channel_id: Id<ChannelMarker>,
message_id: Id<MessageMarker>,
name: &'a str,
) -> CreateThreadFromMessage<'_> {
) -> CreateThreadFromMessage<'a> {
CreateThreadFromMessage::new(self, channel_id, message_id, name)
}

Expand Down Expand Up @@ -2527,7 +2527,7 @@ impl Client {
description: &'a str,
tags: &'a str,
file: &'a [u8],
) -> CreateGuildSticker<'_> {
) -> CreateGuildSticker<'a> {
CreateGuildSticker::new(self, guild_id, name, description, tags, file)
}

Expand Down
4 changes: 2 additions & 2 deletions twilight-model/src/id/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ pub struct EntitlementMarker;

/// Marker for entitlement SKU IDs.
///
/// Types such as [`SKU`] use this ID marker.
/// Types such as [`Sku`] use this ID marker.
///
/// [`SKU`]: crate::application::monetization::sku::SKU
/// [`Sku`]: crate::application::monetization::sku::Sku
#[derive(Debug)]
#[non_exhaustive]
pub struct SkuMarker;
Expand Down

0 comments on commit d46d0cc

Please sign in to comment.