Skip to content

Commit

Permalink
Simplify return for error::Error impl for string::ParseError
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk committed Jan 22, 2016
1 parent 49e27f1 commit 365deeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/error.rs
Expand Up @@ -185,7 +185,7 @@ impl Error for string::FromUtf16Error {
#[stable(feature = "str_parse_error2", since = "1.8.0")]
impl Error for string::ParseError {
fn description(&self) -> &str {
"parse error"
match *self {}
}
}

Expand Down

0 comments on commit 365deeb

Please sign in to comment.