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>>() .collect::<Vec<Token>>()
.into_iter() .into_iter()
.peekmore(), .peekmore(),
map: &mut self.map, map: self.map,
path: name.as_ref(), path: name.as_ref(),
scopes: &mut self.scopes, scopes: self.scopes,
global_scope: &mut self.global_scope, global_scope: self.global_scope,
super_selectors: self.super_selectors, super_selectors: self.super_selectors,
span_before: file.span.subspan(0, 0), span_before: file.span.subspan(0, 0),
content: self.content.clone(), content: self.content.clone(),

View File

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

View File

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