ra_syntax: SyntaxError::range() now returns by value

This commit is contained in:
Veetaha 2020-02-10 02:08:49 +02:00
parent acdab6f0f2
commit e00922d113
4 changed files with 6 additions and 12 deletions

View file

@ -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,