Skip to content

Commit 22ee084

Browse files
committed
Fix clippy
1 parent 34ef683 commit 22ee084

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,11 +429,11 @@ where
429429
}
430430
State::LeftoverValue(ref mut value) => {
431431
let value = mem::take(value);
432-
mem::swap(&mut self.state, &mut State::Poisoned);
432+
self.state = State::Poisoned;
433433

434434
return Err(ParsingError::UnconsumedValue { value });
435435
}
436-
};
436+
}
437437
}
438438
}
439439

0 commit comments

Comments
 (0)