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

Method version

src/system/os.rs:52–57  ·  view source on GitHub ↗

The OS version, absent on the distributions that report none.

(&self)

Source from the content-addressed store, hash-verified

50
51 /// The OS version, absent on the distributions that report none.
52 pub fn version(&self) -> Option<&str> {
53 match self {
54 Self::Linux(distro) => distro.version(),
55 Self::Macos { version } => Some(version),
56 }
57 }
58}
59
60impl Display for SupportedOs {

Callers 2

fmtMethod · 0.80
fromMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected