diff --git a/src/core/requests/send_poll.rs b/src/core/requests/send_poll.rs index ba11325b..861c98e7 100644 --- a/src/core/requests/send_poll.rs +++ b/src/core/requests/send_poll.rs @@ -90,7 +90,7 @@ impl<'a> SendPoll<'a> { pub fn disable_notification(mut self, disable_notification: T) -> Self where - T: Into>, + T: Into, { self.disable_notification = Some(disable_notification.into()); self @@ -98,7 +98,7 @@ impl<'a> SendPoll<'a> { pub fn reply_to_message_id(mut self, reply_to_message_id: T) -> Self where - T: Into>, + T: Into, { self.reply_to_message_id = Some(reply_to_message_id.into()); self diff --git a/src/core/requests/send_venue.rs b/src/core/requests/send_venue.rs index efdaccf0..85fee6d6 100644 --- a/src/core/requests/send_venue.rs +++ b/src/core/requests/send_venue.rs @@ -54,7 +54,7 @@ impl<'a> Request<'a> for SendVenue<'a> { &self.ctx.client, &self.ctx.token, "sendVenue", - Some(&self), + &self, ) .await }) @@ -142,7 +142,7 @@ impl<'a> SendVenue<'a> { pub fn foursquare_type(mut self, foursquare_type: T) -> Self where - T: Into, + T: Into, { self.foursquare_type = Some(foursquare_type.into()); self @@ -152,7 +152,7 @@ impl<'a> SendVenue<'a> { where T: Into, { - self.reply_markup = Some(ReplyMarkup.into()); + self.reply_markup = Some(reply_markup.into()); self } }