mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-09 11:43:57 +01:00
Add #[allow(clippy::wrong_self_convention)]
This commit is contained in:
parent
f5d9cb1a73
commit
914ddd40bb
1 changed files with 6 additions and 0 deletions
|
@ -243,6 +243,7 @@ macro_rules! impl_payload {
|
|||
stringify!($field),
|
||||
") field."
|
||||
)]
|
||||
#[allow(clippy::wrong_self_convention)]
|
||||
fn $field<T>(mut self, value: T) -> Self
|
||||
where
|
||||
T: Into<$FTy>,
|
||||
|
@ -263,6 +264,7 @@ macro_rules! impl_payload {
|
|||
stringify!($field),
|
||||
") field."
|
||||
)]
|
||||
#[allow(clippy::wrong_self_convention)]
|
||||
fn $field<T>(mut self, value: T) -> Self
|
||||
where
|
||||
T: ::core::iter::IntoIterator<Item = <$FTy as ::core::iter::IntoIterator>::Item>,
|
||||
|
@ -283,6 +285,7 @@ macro_rules! impl_payload {
|
|||
stringify!($field),
|
||||
") field."
|
||||
)]
|
||||
#[allow(clippy::wrong_self_convention)]
|
||||
fn $field(mut self, value: $FTy) -> Self {
|
||||
self.payload_mut().$field = Some(value);
|
||||
self
|
||||
|
@ -300,6 +303,7 @@ macro_rules! impl_payload {
|
|||
stringify!($field),
|
||||
") field."
|
||||
)]
|
||||
#[allow(clippy::wrong_self_convention)]
|
||||
fn $field<T>(mut self, value: T) -> Self
|
||||
where
|
||||
T: Into<$FTy>,
|
||||
|
@ -320,6 +324,7 @@ macro_rules! impl_payload {
|
|||
stringify!($field),
|
||||
") field."
|
||||
)]
|
||||
#[allow(clippy::wrong_self_convention)]
|
||||
fn $field<T>(mut self, value: T) -> Self
|
||||
where
|
||||
T: ::core::iter::IntoIterator<Item = <$FTy as ::core::iter::IntoIterator>::Item>,
|
||||
|
@ -340,6 +345,7 @@ macro_rules! impl_payload {
|
|||
stringify!($field),
|
||||
") field."
|
||||
)]
|
||||
#[allow(clippy::wrong_self_convention)]
|
||||
fn $field(mut self, value: $FTy) -> Self {
|
||||
self.payload_mut().$field = value;
|
||||
self
|
||||
|
|
Loading…
Reference in a new issue