The OS version, absent on the distributions that report none.
(&self)
| 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 | |
| 60 | impl Display for SupportedOs { |