We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61fe350 commit c29765aCopy full SHA for c29765a
crates/cargo-codspeed/src/measurement_mode.rs
@@ -10,11 +10,15 @@ pub enum MeasurementMode {
10
Walltime,
11
}
12
13
-impl AsRef<Path> for MeasurementMode {
14
- fn as_ref(&self) -> &Path {
15
- match self {
16
- MeasurementMode::Walltime => Path::new("walltime"),
17
- MeasurementMode::Instrumentation => Path::new("instrumentation"),
18
- }
+impl fmt::Display for MeasurementMode {
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
+ write!(
+ f,
+ "{}",
+ match self {
19
+ MeasurementMode::Instrumentation => "instrumentation",
20
+ MeasurementMode::Walltime => "walltime",
21
+ }
22
+ )
23
24
0 commit comments