remove unused mut
s
This commit is contained in:
parent
69c71dacda
commit
fc63926e18
7 changed files with 11 additions and 11 deletions
|
@ -360,7 +360,7 @@ impl Printer {
|
|||
|
||||
fn check_stack(&mut self, mut depth: usize) {
|
||||
while let Some(&index) = self.scan_stack.back() {
|
||||
let mut entry = &mut self.buf[index];
|
||||
let entry = &mut self.buf[index];
|
||||
match entry.token {
|
||||
Token::Begin(_) => {
|
||||
if depth == 0 {
|
||||
|
|
|
@ -221,7 +221,7 @@ fn append_list(
|
|||
) {
|
||||
let mut p = target_list;
|
||||
loop {
|
||||
let mut r = &mut constraints[p];
|
||||
let r = &mut constraints[p];
|
||||
match r.next_constraint {
|
||||
Some(q) => p = q,
|
||||
None => {
|
||||
|
|
|
@ -421,7 +421,7 @@ fn resolve_expr<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, expr: &'tcx h
|
|||
let target_scopes = visitor.fixup_scopes.drain(start_point..);
|
||||
|
||||
for scope in target_scopes {
|
||||
let mut yield_data =
|
||||
let yield_data =
|
||||
visitor.scope_tree.yield_in_scope.get_mut(&scope).unwrap().last_mut().unwrap();
|
||||
let count = yield_data.expr_and_pat_count;
|
||||
let span = yield_data.span;
|
||||
|
|
|
@ -917,7 +917,7 @@ mod parse {
|
|||
}
|
||||
}
|
||||
|
||||
let mut options = slot.get_or_insert_default();
|
||||
let options = slot.get_or_insert_default();
|
||||
let mut seen_always = false;
|
||||
let mut seen_never = false;
|
||||
let mut seen_ignore_loops = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue