mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
perf(linter): remove redundant clone of diagnostics in context (#5797)
This commit is contained in:
parent
e413cad0d7
commit
1bfa515088
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ impl<'a> LintContext<'a> {
|
|||
/* Diagnostics */
|
||||
|
||||
pub fn into_message(self) -> Vec<Message<'a>> {
|
||||
self.diagnostics.borrow().iter().cloned().collect::<Vec<_>>()
|
||||
self.diagnostics.into_inner()
|
||||
}
|
||||
|
||||
fn add_diagnostic(&self, mut message: Message<'a>) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue