Skip to content

Commit 1be53c6

Browse files
jschweemilio
authored andcommitted
Remove useless fallback
Remove the line, since we already tried location.raw_comment() first. Originally the last `or_else` branch debug printed `location.raw_comment()`, but the print was removed in c94367c.
1 parent efd157f commit 1be53c6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bindgen/ir/item.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1590,10 +1590,7 @@ impl Item {
15901590
canonical_def.unwrap_or_else(|| ty.declaration())
15911591
};
15921592

1593-
let comment = location
1594-
.raw_comment()
1595-
.or_else(|| decl.raw_comment())
1596-
.or_else(|| location.raw_comment());
1593+
let comment = location.raw_comment().or_else(|| decl.raw_comment());
15971594

15981595
let annotations =
15991596
Annotations::new(&decl).or_else(|| Annotations::new(&location));

0 commit comments

Comments
 (0)