Skip to content

Commit 78dabc9

Browse files
committed
Fix dogfood error of question_mark lint fix
1 parent 0294c95 commit 78dabc9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clippy_lints/src/utils/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,8 @@ impl<'tcx> Printer<'tcx, 'tcx> for AbsolutePathPrinter<'_, 'tcx> {
180180
let mut path = print_prefix(self)?;
181181

182182
// Skip `::{{constructor}}` on tuple/unit structs.
183-
match disambiguated_data.data {
184-
DefPathData::Ctor => return Ok(path),
185-
_ => {}
183+
if let DefPathData::Ctor = disambiguated_data.data {
184+
return Ok(path);
186185
}
187186

188187
path.push(disambiguated_data.data.as_interned_str().as_str());

0 commit comments

Comments
 (0)