We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8da501 commit 7b20223Copy full SHA for 7b20223
compiler/parser/src/fstring.rs
@@ -7,26 +7,26 @@ use crate::{
7
use std::{iter, mem, str};
8
9
struct FStringParser<'a> {
10
- source: iter::Peekable<str::Chars<'a>>,
+ chars: iter::Peekable<str::Chars<'a>>,
11
str_start: Location,
12
str_end: Location,
13
}
14
15
impl<'a> FStringParser<'a> {
16
fn new(source: &'a str, str_start: Location, str_end: Location) -> Self {
17
Self {
18
- source: source.chars().peekable(),
+ chars: source.chars().peekable(),
19
str_start,
20
str_end,
21
22
23
24
fn next_char(&mut self) -> Option<char> {
25
- self.source.next()
+ self.chars.next()
26
27
28
fn peek(&mut self) -> Option<&char> {
29
- self.source.peek()
+ self.chars.peek()
30
31
32
#[inline]
0 commit comments