Skip to content

Commit b02bdd0

Browse files
committed
Fix a clippy
1 parent 84ece06 commit b02bdd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,8 +1236,8 @@ impl Error for ParseRatioError {
12361236
}
12371237

12381238
impl RatioErrorKind {
1239-
fn description(&self) -> &'static str {
1240-
match *self {
1239+
fn description(self) -> &'static str {
1240+
match self {
12411241
RatioErrorKind::ParseError => "failed to parse integer",
12421242
RatioErrorKind::ZeroDenominator => "zero value denominator",
12431243
}

0 commit comments

Comments
 (0)