mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-08 03:22:06 +01:00
Fix clippy
This commit is contained in:
parent
b0f54533b0
commit
c498872778
1 changed files with 2 additions and 1 deletions
|
@ -466,7 +466,7 @@ impl InputMessageContentInvoice {
|
|||
}
|
||||
|
||||
pub fn currency(mut self, val: Currency) -> Self {
|
||||
self.currency = val.into();
|
||||
self.currency = val;
|
||||
self
|
||||
}
|
||||
|
||||
|
@ -549,6 +549,7 @@ impl InputMessageContentInvoice {
|
|||
self
|
||||
}
|
||||
|
||||
#[allow(clippy::wrong_self_convention)]
|
||||
pub fn is_flexible(mut self, val: bool) -> Self {
|
||||
self.is_flexible = Some(val);
|
||||
self
|
||||
|
|
Loading…
Reference in a new issue