We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5553a9 commit 5155f1eCopy full SHA for 5155f1e
src/imports.rs
@@ -441,9 +441,7 @@ impl UseTree {
441
}
442
443
fn has_comment(&self) -> bool {
444
- self.list_item.as_ref().map_or(false, |list_item| {
445
- list_item.pre_comment.is_some() || list_item.post_comment.is_some()
446
- })
+ self.list_item.as_ref().map_or(false, ListItem::has_comment)
447
448
449
fn same_visibility(&self, other: &UseTree) -> bool {
@@ -521,7 +519,6 @@ impl UseTree {
521
519
if *a == b {
522
520
len = i + 1;
523
new_path.push(b);
524
- continue;
525
} else {
526
len = i;
527
break;
0 commit comments