mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
more clippy fixes
This commit is contained in:
parent
3c468ab2fc
commit
35e5daacc3
19 changed files with 46 additions and 52 deletions
|
@ -353,7 +353,7 @@ mod tests {
|
|||
fn check_with_config(ra_fixture: &str, config: HighlightRelatedConfig) {
|
||||
let (analysis, pos, annotations) = fixture::annotations(ra_fixture);
|
||||
|
||||
let hls = analysis.highlight_related(config, pos).unwrap().unwrap_or(Vec::default());
|
||||
let hls = analysis.highlight_related(config, pos).unwrap().unwrap_or_default();
|
||||
|
||||
let mut expected = annotations
|
||||
.into_iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue