mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
ra_syntax: SyntaxError::range() now returns by value
This commit is contained in:
parent
acdab6f0f2
commit
e00922d113
4 changed files with 6 additions and 12 deletions
|
@ -29,7 +29,7 @@ pub(crate) fn diagnostics(db: &RootDatabase, file_id: FileId) -> Vec<Diagnostic>
|
|||
let mut res = Vec::new();
|
||||
|
||||
res.extend(parse.errors().iter().map(|err| Diagnostic {
|
||||
range: *err.range(),
|
||||
range: err.range(),
|
||||
message: format!("Syntax Error: {}", err),
|
||||
severity: Severity::Error,
|
||||
fix: None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue