From 2634e10dcfa555756420f79a28aea97180adf634 Mon Sep 17 00:00:00 2001 From: Jens Reidel Date: Wed, 4 Sep 2024 01:23:57 +0200 Subject: [PATCH] fix(http, model): Fix nightly compiler and rustdoc warnings Signed-off-by: Jens Reidel --- twilight-http/src/client/mod.rs | 8 ++++---- twilight-model/src/id/marker.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/twilight-http/src/client/mod.rs b/twilight-http/src/client/mod.rs index 45aca5aa153..10b4fe6fc32 100644 --- a/twilight-http/src/client/mod.rs +++ b/twilight-http/src/client/mod.rs @@ -1873,7 +1873,7 @@ impl Client { &'a self, channel_id: Id, name: &'a str, - ) -> CreateForumThread<'_> { + ) -> CreateForumThread<'a> { CreateForumThread::new(self, channel_id, name) } @@ -1900,7 +1900,7 @@ impl Client { channel_id: Id, name: &'a str, kind: ChannelType, - ) -> CreateThread<'_> { + ) -> CreateThread<'a> { CreateThread::new(self, channel_id, name, kind) } @@ -1936,7 +1936,7 @@ impl Client { channel_id: Id, message_id: Id, name: &'a str, - ) -> CreateThreadFromMessage<'_> { + ) -> CreateThreadFromMessage<'a> { CreateThreadFromMessage::new(self, channel_id, message_id, name) } @@ -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) } diff --git a/twilight-model/src/id/marker.rs b/twilight-model/src/id/marker.rs index 172d8e52531..d99741d3506 100644 --- a/twilight-model/src/id/marker.rs +++ b/twilight-model/src/id/marker.rs @@ -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;