mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-18 15:20:15 +01:00
Elide lifetimes where possible.
Fix clippy "warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)"
This commit is contained in:
parent
cbd98f6e03
commit
d68ec00deb
5 changed files with 5 additions and 5 deletions
|
@ -28,7 +28,7 @@ pub struct KickChatMember<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
impl<'a> Request for KickChatMember<'a> {
|
impl Request for KickChatMember<'_> {
|
||||||
type ReturnValue = True;
|
type ReturnValue = True;
|
||||||
|
|
||||||
async fn send_boxed(self) -> ResponseResult<Self::ReturnValue> {
|
async fn send_boxed(self) -> ResponseResult<Self::ReturnValue> {
|
||||||
|
|
|
@ -45,7 +45,7 @@ impl<'a> PinChatMessage<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
impl<'a> Request for PinChatMessage<'a> {
|
impl Request for PinChatMessage<'_> {
|
||||||
type ReturnValue = True;
|
type ReturnValue = True;
|
||||||
async fn send_boxed(self) -> ResponseResult<Self::ReturnValue> {
|
async fn send_boxed(self) -> ResponseResult<Self::ReturnValue> {
|
||||||
self.send().await
|
self.send().await
|
||||||
|
|
|
@ -29,7 +29,7 @@ pub struct RestrictChatMember<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
impl<'a> Request for RestrictChatMember<'a> {
|
impl Request for RestrictChatMember<'_> {
|
||||||
type ReturnValue = True;
|
type ReturnValue = True;
|
||||||
|
|
||||||
async fn send_boxed(self) -> ResponseResult<Self::ReturnValue> {
|
async fn send_boxed(self) -> ResponseResult<Self::ReturnValue> {
|
||||||
|
|
|
@ -65,7 +65,7 @@ pub struct SendAnimation<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
impl<'a> Request for SendAnimation<'a> {
|
impl Request for SendAnimation<'_> {
|
||||||
type ReturnValue = Message;
|
type ReturnValue = Message;
|
||||||
|
|
||||||
async fn send_boxed(self) -> ResponseResult<Self::ReturnValue> {
|
async fn send_boxed(self) -> ResponseResult<Self::ReturnValue> {
|
||||||
|
|
|
@ -66,7 +66,7 @@ pub struct SendVideo<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
impl<'a> Request for SendVideo<'a> {
|
impl Request for SendVideo<'_> {
|
||||||
type ReturnValue = Message;
|
type ReturnValue = Message;
|
||||||
|
|
||||||
async fn send_boxed(self) -> ResponseResult<Self::ReturnValue> {
|
async fn send_boxed(self) -> ResponseResult<Self::ReturnValue> {
|
||||||
|
|
Loading…
Reference in a new issue