mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-09 03:43:22 +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 {
|
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
|
||||||
|
|
Loading…
Reference in a new issue