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

Method fmt

src/system/os.rs:61–66  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

59
60impl Display for SupportedOs {
61 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
62 match self.version() {
63 Some(version) => write!(f, "{} {version}", self.id()),
64 None => write!(f, "{}", self.id()),
65 }
66 }
67}
68
69/// Flat `{os, osVersion}` shape we emit on the wire as part of `SystemInfo`.

Callers

nothing calls this directly

Calls 1

versionMethod · 0.80

Tested by

no test coverage detected