(s: &str)
| 60 | type Err = Error; |
| 61 | |
| 62 | fn from_str(s: &str) -> Result<Self> { |
| 63 | if let Ok(v) = MajorMinorPatch::from_str(s) { |
| 64 | return Ok(VersionNumber::MajorMinorPatch(v)); |
| 65 | } |
| 66 | |
| 67 | Ok(VersionNumber::CustomVersion(s.parse()?)) |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | impl FromStr for MajorMinorPatch { |
nothing calls this directly
no test coverage detected