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 151b985 commit ebeda16Copy full SHA for ebeda16
compiler-core/src/parse/extra.rs
@@ -64,10 +64,10 @@ impl ModuleExtra {
64
let mut best = None;
65
let mut search_list = &self.comments[..];
66
while let Some(index) = inner(search_list, start, end) {
67
- best = self.comments.get(index).copied();
+ best = self.comments.get(index);
68
search_list = search_list.get(0..index).unwrap_or(&[]);
69
}
70
- best
+ best.copied()
71
72
73
0 commit comments