MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / fmt

Method fmt

src/api_client.rs:270–280  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

268
269impl Display for BenchmarkReportStatus {
270 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
271 match self {
272 BenchmarkReportStatus::Improvement => {
273 write!(f, "{}", style("Improvement").green().bold())
274 }
275 BenchmarkReportStatus::Missing => write!(f, "{}", style("Missing").yellow().bold()),
276 BenchmarkReportStatus::New => write!(f, "{}", style("New").cyan().bold()),
277 BenchmarkReportStatus::NoChange => write!(f, "{}", style("No Change").dim()),
278 BenchmarkReportStatus::Regression => write!(f, "{}", style("Regression").red().bold()),
279 }
280 }
281}
282
283nest! {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected