Fix clippy

This commit is contained in:
Waffle 2021-05-04 18:20:08 +03:00
parent b0f54533b0
commit c498872778

View file

@ -466,7 +466,7 @@ impl InputMessageContentInvoice {
} }
pub fn currency(mut self, val: Currency) -> Self { pub fn currency(mut self, val: Currency) -> Self {
self.currency = val.into(); self.currency = val;
self self
} }
@ -549,6 +549,7 @@ impl InputMessageContentInvoice {
self self
} }
#[allow(clippy::wrong_self_convention)]
pub fn is_flexible(mut self, val: bool) -> Self { pub fn is_flexible(mut self, val: bool) -> Self {
self.is_flexible = Some(val); self.is_flexible = Some(val);
self self