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:
Waffle 2019-10-13 14:17:23 +03:00
parent cbd98f6e03
commit d68ec00deb
5 changed files with 5 additions and 5 deletions

View file

@ -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<Self::ReturnValue> {

View file

@ -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::ReturnValue> {
self.send().await

View file

@ -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<Self::ReturnValue> {

View file

@ -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<Self::ReturnValue> {

View file

@ -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<Self::ReturnValue> {