diff --git a/src/requests/kick_chat_member.rs b/src/requests/kick_chat_member.rs index deb6c65e..975b6b71 100644 --- a/src/requests/kick_chat_member.rs +++ b/src/requests/kick_chat_member.rs @@ -28,7 +28,7 @@ pub struct KickChatMember<'a> { } #[async_trait] -impl<'a> Request for KickChatMember<'a> { +impl Request for KickChatMember<'_> { type ReturnValue = True; async fn send_boxed(self) -> ResponseResult { diff --git a/src/requests/pin_chat_message.rs b/src/requests/pin_chat_message.rs index 5ab517ff..0e3764c3 100644 --- a/src/requests/pin_chat_message.rs +++ b/src/requests/pin_chat_message.rs @@ -45,7 +45,7 @@ impl<'a> PinChatMessage<'a> { } #[async_trait] -impl<'a> Request for PinChatMessage<'a> { +impl Request for PinChatMessage<'_> { type ReturnValue = True; async fn send_boxed(self) -> ResponseResult { self.send().await diff --git a/src/requests/restrict_chat_member.rs b/src/requests/restrict_chat_member.rs index 67e24c5a..06139c37 100644 --- a/src/requests/restrict_chat_member.rs +++ b/src/requests/restrict_chat_member.rs @@ -29,7 +29,7 @@ pub struct RestrictChatMember<'a> { } #[async_trait] -impl<'a> Request for RestrictChatMember<'a> { +impl Request for RestrictChatMember<'_> { type ReturnValue = True; async fn send_boxed(self) -> ResponseResult { diff --git a/src/requests/send_animation.rs b/src/requests/send_animation.rs index 3020d9fe..b5741de0 100644 --- a/src/requests/send_animation.rs +++ b/src/requests/send_animation.rs @@ -65,7 +65,7 @@ pub struct SendAnimation<'a> { } #[async_trait] -impl<'a> Request for SendAnimation<'a> { +impl Request for SendAnimation<'_> { type ReturnValue = Message; async fn send_boxed(self) -> ResponseResult { diff --git a/src/requests/send_video.rs b/src/requests/send_video.rs index a234cbee..7e5d03da 100644 --- a/src/requests/send_video.rs +++ b/src/requests/send_video.rs @@ -66,7 +66,7 @@ pub struct SendVideo<'a> { } #[async_trait] -impl<'a> Request for SendVideo<'a> { +impl Request for SendVideo<'_> { type ReturnValue = Message; async fn send_boxed(self) -> ResponseResult {