We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ee06ed commit 86fdf49Copy full SHA for 86fdf49
src/scheduler/work_counter.rs
@@ -21,7 +21,7 @@ pub(super) trait WorkCounter: WorkCounterClone {
21
// TODO: consolidate with crate::util::statistics::counter::Counter;
22
fn start(&mut self);
23
fn stop(&mut self);
24
- fn name(&self) -> &'static str;
+ fn name(&self) -> String;
25
fn get_base(&self) -> &WorkCounterBase;
26
fn get_base_mut(&mut self) -> &mut WorkCounterBase;
27
}
@@ -91,8 +91,8 @@ impl WorkCounter for WorkDuration {
91
self.base.merge_val(duration);
92
93
94
- fn name(&self) -> &'static str {
95
- "time"
+ fn name(&self) -> String {
+ "time".to_owned()
96
97
98
fn get_base(&self) -> &WorkCounterBase {
0 commit comments