From 65739473c4fc811e768d91562602f21c61b6ec4b Mon Sep 17 00:00:00 2001 From: harupy Date: Thu, 29 Dec 2022 01:01:41 +0900 Subject: [PATCH] Rename --- parser/src/fstring.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/parser/src/fstring.rs b/parser/src/fstring.rs index f92d642..c63719e 100644 --- a/parser/src/fstring.rs +++ b/parser/src/fstring.rs @@ -7,7 +7,7 @@ use crate::{ use std::{iter, mem, str}; struct FStringParser<'a> { - source: iter::Peekable>, + chars: iter::Peekable>, str_start: Location, str_end: Location, } @@ -15,18 +15,18 @@ struct FStringParser<'a> { impl<'a> FStringParser<'a> { fn new(source: &'a str, str_start: Location, str_end: Location) -> Self { Self { - source: source.chars().peekable(), + chars: source.chars().peekable(), str_start, str_end, } } fn next_char(&mut self) -> Option { - self.source.next() + self.chars.next() } fn peek(&mut self) -> Option<&char> { - self.source.peek() + self.chars.peek() } #[inline]