(value: &OsStr)
| 57 | |
| 58 | impl FromArgValue for LogLevel { |
| 59 | fn from_arg_value(value: &OsStr) -> Result<Self, String> { |
| 60 | String::from_arg_value(value) |
| 61 | .and_then(|s| Self::from_str(&s).map_err(|_| "Invalid log level".to_string())) |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | #[derive(FromArgs, PartialEq, Debug)] |
nothing calls this directly
no test coverage detected