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

Method fmt

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

Source from the content-addressed store, hash-verified

225
226impl Display for BenchmarkReportStatus {
227 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
228 match self {
229 BenchmarkReportStatus::Improvement => {
230 write!(f, "{}", style("Improvement").green().bold())
231 }
232 BenchmarkReportStatus::Missing => write!(f, "{}", style("Missing").yellow().bold()),
233 BenchmarkReportStatus::New => write!(f, "{}", style("New").cyan().bold()),
234 BenchmarkReportStatus::NoChange => write!(f, "{}", style("No Change").dim()),
235 BenchmarkReportStatus::Regression => write!(f, "{}", style("Regression").red().bold()),
236 }
237 }
238}
239
240nest! {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected