diff options
author | Alan Du <[email protected]> | 2019-06-04 06:43:12 +0100 |
---|---|---|
committer | Alan Du <[email protected]> | 2019-06-04 23:05:07 +0100 |
commit | 4e449fb0b0d5fca99d0aaf481539fa9ec662a8c2 (patch) | |
tree | 751f2439cb2b04b0d2becb78f722812aac47ddfd /crates/ra_parser/src | |
parent | 63e37f95366131359282186286664b7b70038844 (diff) |
Fix clippy::if_same_then_else
Diffstat (limited to 'crates/ra_parser/src')
-rw-r--r-- | crates/ra_parser/src/grammar/expressions.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_parser/src/grammar/expressions.rs b/crates/ra_parser/src/grammar/expressions.rs index bb6c78b5f..99e32c4e8 100644 --- a/crates/ra_parser/src/grammar/expressions.rs +++ b/crates/ra_parser/src/grammar/expressions.rs | |||
@@ -454,6 +454,7 @@ fn method_call_expr(p: &mut Parser, lhs: CompletedMarker) -> CompletedMarker { | |||
454 | // x.1i32; | 454 | // x.1i32; |
455 | // x.0x01; | 455 | // x.0x01; |
456 | // } | 456 | // } |
457 | #[allow(clippy::if_same_then_else)] | ||
457 | fn field_expr(p: &mut Parser, lhs: CompletedMarker) -> CompletedMarker { | 458 | fn field_expr(p: &mut Parser, lhs: CompletedMarker) -> CompletedMarker { |
458 | assert!(p.at(T![.])); | 459 | assert!(p.at(T![.])); |
459 | let m = lhs.precede(p); | 460 | let m = lhs.precede(p); |