mirror of https://github.com/lapce/lapce.git
Don't clone paths when collecting diag items
This commit is contained in:
parent
bf5a98a6d4
commit
e655bfe9e1
|
@ -2237,7 +2237,7 @@ pub fn diagnostics_items(
|
|||
None
|
||||
}
|
||||
})
|
||||
.sorted_by_key(|(path, _)| (*path).clone())
|
||||
.sorted_by_key(|(path, _)| *path)
|
||||
.collect()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue