diff --git a/crates/hyperqueue/src/common/parser.rs b/crates/hyperqueue/src/common/parser.rs index c0f76f754..d6a8a8b94 100644 --- a/crates/hyperqueue/src/common/parser.rs +++ b/crates/hyperqueue/src/common/parser.rs @@ -210,7 +210,7 @@ pub fn map_parse_result( /// Take a parser and input and return Result with a formatted error. pub fn consume_all<'a, O, F>(f: F, input: &'a str) -> anyhow::Result where - F: FnMut(&'a str) -> NomResult, + F: FnMut(&'a str) -> NomResult<'a, O>, { map_parse_result(all_consuming(f)(input).map(|r| r.1), input) } diff --git a/crates/hyperqueue/src/dashboard/data/data.rs b/crates/hyperqueue/src/dashboard/data/data.rs index 28412d1f3..37b2a90f5 100644 --- a/crates/hyperqueue/src/dashboard/data/data.rs +++ b/crates/hyperqueue/src/dashboard/data/data.rs @@ -36,7 +36,7 @@ impl DashboardData { } } - pub fn push_new_events(&mut self, mut events: Vec) { + pub fn push_new_events(&mut self, events: Vec) { // Update data views self.worker_timeline.handle_new_events(&events); self.job_timeline.handle_new_events(&events);