fn leak_os_name(os: &str) -> &'static strExpand description
Convert a runtime OS string (std::env::consts::OS produces &str)
to a &'static str suitable for the EncodeError::Unsupported
field. The set of possible values is bounded so we map each known
one explicitly; anything else falls through to "other".