mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
reformat the world
This commit is contained in:
parent
5cb1d41a30
commit
12e3b4c70b
129 changed files with 727 additions and 2509 deletions
|
@ -24,9 +24,7 @@ impl<'a> Parser<'a> {
|
|||
}
|
||||
|
||||
pub fn advance(&mut self) -> char {
|
||||
let next = self
|
||||
.peek()
|
||||
.expect("cannot advance if end of input is reached");
|
||||
let next = self.peek().expect("cannot advance if end of input is reached");
|
||||
self.pos += next.len_utf8();
|
||||
next
|
||||
}
|
||||
|
@ -133,10 +131,7 @@ impl<'a> Parser<'a> {
|
|||
Some(self.parse_escape(start))
|
||||
} else {
|
||||
let end = self.get_pos();
|
||||
Some(StringComponent::new(
|
||||
TextRange::from_to(start, end),
|
||||
CodePoint,
|
||||
))
|
||||
Some(StringComponent::new(TextRange::from_to(start, end), CodePoint))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue