Add #[allow(clippy::wrong_self_convention)]

This commit is contained in:
Temirkhan Myrzamadi 2020-12-23 22:46:31 +06:00
parent f5d9cb1a73
commit 914ddd40bb

View file

@ -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