Don't need to pass back the input here

This commit is contained in:
David Tolnay
2017-02-25 11:31:00 -08:00
parent 17279e8a4f
commit 47efbc6d75
2 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ impl RenameRule {
}
impl FromStr for RenameRule {
type Err = String;
type Err = ();
fn from_str(rename_all_str: &str) -> Result<Self, Self::Err> {
match rename_all_str {
@@ -77,7 +77,7 @@ impl FromStr for RenameRule {
"snake_case" => Ok(SnakeCase),
"SCREAMING_SNAKE_CASE" => Ok(ScreamingSnakeCase),
"kebab-case" => Ok(KebabCase),
other => Err(other.to_string()),
_ => Err(()),
}
}
}