This commit is contained in:
Waffle 2021-05-18 18:42:33 +03:00
parent d745f9bdb1
commit a5192a9ecb
2 changed files with 5 additions and 1 deletions

View file

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

View file

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