mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Clippy
This commit is contained in:
parent
d745f9bdb1
commit
a5192a9ecb
2 changed files with 5 additions and 1 deletions
|
@ -219,6 +219,7 @@ where
|
|||
// Updates fetched last time.
|
||||
//
|
||||
// We need to store them here so we can drop stream without loosing state.
|
||||
#[allow(clippy::type_complexity)]
|
||||
fetched: Option<
|
||||
iter::Map<
|
||||
iter::FilterMap<
|
||||
|
@ -402,7 +403,9 @@ where
|
|||
Thf: Fn(&St) -> Option<Duration>,
|
||||
{
|
||||
fn stop(&mut self) {
|
||||
self.stop.take().map(|stop| stop(&mut self.state));
|
||||
if let Some(stop) = self.stop.take() {
|
||||
stop(&mut self.state)
|
||||
}
|
||||
}
|
||||
|
||||
fn timeout_hint(&self) -> Option<Duration> {
|
||||
|
|
|
@ -54,6 +54,7 @@
|
|||
// $ RUSTDOCFLAGS="--cfg docsrs -Znormalize-docs" cargo +nightly doc --open --all-features
|
||||
// ```
|
||||
#![cfg_attr(all(docsrs, feature = "nightly"), feature(doc_cfg))]
|
||||
#![allow(clippy::redundant_pattern_matching)]
|
||||
|
||||
pub use dispatching::repls::{
|
||||
commands_repl, commands_repl_with_listener, dialogues_repl, dialogues_repl_with_listener, repl,
|
||||
|
|
Loading…
Add table
Reference in a new issue