Parse a `MAJOR:MINOR` lowercase-hex dev column.
(col: &str)
| 185 | |
| 186 | /// Parse a `MAJOR:MINOR` lowercase-hex dev column. |
| 187 | fn parse_dev(col: &str) -> Option<(u32, u32)> { |
| 188 | let (major, minor) = col.split_once(':')?; |
| 189 | Some(( |
| 190 | u32::from_str_radix(major, 16).ok()?, |
| 191 | u32::from_str_radix(minor, 16).ok()?, |
| 192 | )) |
| 193 | } |
| 194 | |
| 195 | #[cfg(test)] |
| 196 | mod tests { |
no outgoing calls