diff options
Diffstat (limited to 'src/tree_options.rs')
-rw-r--r-- | src/tree_options.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree_options.rs b/src/tree_options.rs index de71ba2..02736d8 100644 --- a/src/tree_options.rs +++ b/src/tree_options.rs @@ -12,7 +12,7 @@ pub enum OptionBool { impl FromStr for OptionBool { type Err = ProgramError; fn from_str(s: &str) -> Result<OptionBool, ProgramError> { - match s.as_ref() { + match s { "auto" => Ok(OptionBool::Auto), "yes" => Ok(OptionBool::Yes), "no" => Ok(OptionBool::No), |