Skip to content

Commit 7b20223

Browse files
committed
Rename
1 parent f8da501 commit 7b20223

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/parser/src/fstring.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@ use crate::{
77
use std::{iter, mem, str};
88

99
struct FStringParser<'a> {
10-
source: iter::Peekable<str::Chars<'a>>,
10+
chars: iter::Peekable<str::Chars<'a>>,
1111
str_start: Location,
1212
str_end: Location,
1313
}
1414

1515
impl<'a> FStringParser<'a> {
1616
fn new(source: &'a str, str_start: Location, str_end: Location) -> Self {
1717
Self {
18-
source: source.chars().peekable(),
18+
chars: source.chars().peekable(),
1919
str_start,
2020
str_end,
2121
}
2222
}
2323

2424
fn next_char(&mut self) -> Option<char> {
25-
self.source.next()
25+
self.chars.next()
2626
}
2727

2828
fn peek(&mut self) -> Option<&char> {
29-
self.source.peek()
29+
self.chars.peek()
3030
}
3131

3232
#[inline]

0 commit comments

Comments
 (0)