Skip to content

Commit

Permalink
Fix dogfood error of question_mark lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Mar 27, 2019
1 parent 0294c95 commit 78dabc9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clippy_lints/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 78dabc9

Please sign in to comment.