remove superfuous &mut

This commit is contained in:
ConnorSkees 2020-06-22 03:19:16 -04:00
parent fa04a8ac05
commit 1362d747a4
3 changed files with 9 additions and 9 deletions

View File

@ -74,10 +74,10 @@ impl<'a> Parser<'a> {
.collect::<Vec<Token>>()
.into_iter()
.peekmore(),
map: &mut self.map,
map: self.map,
path: name.as_ref(),
scopes: &mut self.scopes,
global_scope: &mut self.global_scope,
scopes: self.scopes,
global_scope: self.global_scope,
super_selectors: self.super_selectors,
span_before: file.span.subspan(0, 0),
content: self.content.clone(),

View File

@ -579,7 +579,7 @@ impl<'a> Parser<'a> {
map: self.map,
path: self.path,
scopes: self.scopes,
global_scope: &mut self.global_scope,
global_scope: self.global_scope,
super_selectors: self.super_selectors,
span_before: self.span_before,
content: self.content.clone(),
@ -601,7 +601,7 @@ impl<'a> Parser<'a> {
map: self.map,
path: self.path,
scopes: self.scopes,
global_scope: &mut self.global_scope,
global_scope: self.global_scope,
super_selectors: self.super_selectors,
span_before: self.span_before,
content: self.content.clone(),
@ -826,7 +826,7 @@ impl<'a> Parser<'a> {
map: self.map,
path: self.path,
scopes: self.scopes,
global_scope: &mut self.global_scope,
global_scope: self.global_scope,
super_selectors: self.super_selectors,
span_before: self.span_before,
content: self.content.clone(),
@ -937,7 +937,7 @@ impl<'a> Parser<'a> {
map: self.map,
path: self.path,
scopes: self.scopes,
global_scope: &mut self.global_scope,
global_scope: self.global_scope,
super_selectors: self.super_selectors,
span_before: self.span_before,
content: self.content.clone(),
@ -959,7 +959,7 @@ impl<'a> Parser<'a> {
map: self.map,
path: self.path,
scopes: self.scopes,
global_scope: &mut self.global_scope,
global_scope: self.global_scope,
super_selectors: self.super_selectors,
span_before: self.span_before,
content: self.content.clone(),

View File

@ -786,7 +786,7 @@ impl<'a, 'b: 'a> Iterator for IntermediateValueIterator<'a, 'b> {
type Item = SassResult<Spanned<IntermediateValue>>;
fn next(&mut self) -> Option<Self::Item> {
if self.peek.is_some() {
mem::take(&mut self.peek)
self.peek.take()
} else {
self.parser.parse_intermediate_value()
}