Skip to content

Commit 365deeb

Browse files
committed
Simplify return for error::Error impl for string::ParseError
1 parent 49e27f1 commit 365deeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ impl Error for string::FromUtf16Error {
185185
#[stable(feature = "str_parse_error2", since = "1.8.0")]
186186
impl Error for string::ParseError {
187187
fn description(&self) -> &str {
188-
"parse error"
188+
match *self {}
189189
}
190190
}
191191

0 commit comments

Comments
 (0)