(&self, f: &mut fmt::Formatter)
| 16 | |
| 17 | impl fmt::Display for PythonVersion { |
| 18 | fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { |
| 19 | self.major.fmt(f)?; |
| 20 | f.write_str(".")?; |
| 21 | match self.minor { |
| 22 | Some(minor) => minor.fmt(f)?, |
| 23 | None => f.write_str("*")?, |
| 24 | }; |
| 25 | Ok(()) |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | const CFG_KEY: &str = "py_sys_config"; |
nothing calls this directly
no outgoing calls
no test coverage detected