mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Cargo Format
Run `cargo fmt` and ignore generated files
This commit is contained in:
parent
39cb6c6d3f
commit
61f3a438d3
76 changed files with 1936 additions and 1530 deletions
|
@ -1,10 +1,9 @@
|
|||
use rowan::GreenNodeBuilder;
|
||||
use crate::{
|
||||
TextUnit, SmolStr,
|
||||
parser_impl::Sink,
|
||||
yellow::{GreenNode, SyntaxError, RaTypes},
|
||||
SyntaxKind,
|
||||
yellow::{GreenNode, RaTypes, SyntaxError},
|
||||
SmolStr, SyntaxKind, TextUnit,
|
||||
};
|
||||
use rowan::GreenNodeBuilder;
|
||||
|
||||
pub(crate) struct GreenBuilder {
|
||||
errors: Vec<SyntaxError>,
|
||||
|
@ -36,7 +35,10 @@ impl Sink for GreenBuilder {
|
|||
}
|
||||
|
||||
fn error(&mut self, message: String, offset: TextUnit) {
|
||||
let error = SyntaxError { msg: message, offset };
|
||||
let error = SyntaxError {
|
||||
msg: message,
|
||||
offset,
|
||||
};
|
||||
self.errors.push(error)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue