Convert spaces to tabs (#6799)

This commit is contained in:
Ashley
2020-08-03 15:48:32 +02:00
committed by GitHub
parent 1a84ad87c0
commit 07facb13c2
11 changed files with 262 additions and 262 deletions
+12 -12
View File
@@ -93,26 +93,26 @@ pub enum Mode {
}
impl std::str::FromStr for Mode {
type Err = &'static str;
fn from_str(day: &str) -> Result<Self, Self::Err> {
match day {
"regular" => Ok(Mode::Regular),
"profile" => Ok(Mode::Profile),
_ => Err("Could not parse mode"),
}
}
type Err = &'static str;
fn from_str(day: &str) -> Result<Self, Self::Err> {
match day {
"regular" => Ok(Mode::Regular),
"profile" => Ok(Mode::Profile),
_ => Err("Could not parse mode"),
}
}
}
impl fmt::Display for BenchmarkOutput {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(
f,
"{}: avg {}, w_avg {}",
self.name,
NsFormatter(self.raw_average),
NsFormatter(self.average),
)
}
}
}
pub fn run_benchmark(
@@ -159,4 +159,4 @@ macro_rules! matrix(
}
};
() => { vec![] }
);
);