(value: &OsStr)
| 70 | |
| 71 | impl FromArgValue for LogLevel { |
| 72 | fn from_arg_value(value: &OsStr) -> Result<Self, String> { |
| 73 | String::from_arg_value(value) |
| 74 | .and_then(|s| Self::from_str(&s).map_err(|_| "Invalid log level".to_string())) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | #[derive(FromArgs, PartialEq, Debug)] |
nothing calls this directly
no test coverage detected