diff options
| author | flip1995 <hello@philkrones.com> | 2019-03-27 13:22:40 +0100 |
|---|---|---|
| committer | flip1995 <hello@philkrones.com> | 2019-04-01 20:37:05 +0200 |
| commit | bbb7963735308b5bf2e978c124feed20afcc528c (patch) | |
| tree | b7585691bcdf6574e3fbbadb77a02e50cbff7fc1 | |
| parent | 6f01ecfefde7aee9a2cd62cd4b28e42dfe36410d (diff) | |
| download | rust-bbb7963735308b5bf2e978c124feed20afcc528c.tar.gz rust-bbb7963735308b5bf2e978c124feed20afcc528c.zip | |
Fix dogfood error of question_mark lint fix
| -rw-r--r-- | clippy_lints/src/utils/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs index 1f4b0324700..3590b7ae9ee 100644 --- a/clippy_lints/src/utils/mod.rs +++ b/clippy_lints/src/utils/mod.rs @@ -180,9 +180,8 @@ impl<'tcx> Printer<'tcx, 'tcx> for AbsolutePathPrinter<'_, 'tcx> { let mut path = print_prefix(self)?; // Skip `::{{constructor}}` on tuple/unit structs. - match disambiguated_data.data { - DefPathData::Ctor => return Ok(path), - _ => {} + if let DefPathData::Ctor = disambiguated_data.data { + return Ok(path); } path.push(disambiguated_data.data.as_interned_str().as_str()); |
