(raw: Option<&String>)
| 747 | } |
| 748 | |
| 749 | fn optional_skill_source(raw: Option<&String>) -> Result<Option<SkillSource>, String> { |
| 750 | raw.map(|s| parse_skill_source(s).map(Some)) |
| 751 | .unwrap_or(Ok(None)) |
| 752 | } |
| 753 | |
| 754 | fn parse_skill_source(raw: &str) -> Result<SkillSource, String> { |
| 755 | match raw { |
no test coverage detected