(raw: Option<&str>)
| 40 | |
| 41 | impl RawExpansionMode { |
| 42 | pub fn parse(raw: Option<&str>) -> Self { |
| 43 | match raw.unwrap_or("normal").trim().to_ascii_lowercase().as_str() { |
| 44 | "strict" => Self::Strict, |
| 45 | "investigate" => Self::Investigate, |
| 46 | _ => Self::Normal, |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | pub fn label(self) -> &'static str { |
| 51 | match self { |
no outgoing calls
no test coverage detected