Skip to content

Commit

Permalink
chore: update to nightly-2021-09-22, fix clippy (#115)
Browse files Browse the repository at this point in the history
This just updates Rust to the latest nightly, and fixes a new Clippy
lint on that nightly.
  • Loading branch information
hawkw committed Sep 26, 2021
1 parent e55166e commit 26f4143
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
channel = "nightly-2021-06-05"
channel = "nightly-2021-09-22"
components = [
"clippy",
"rustfmt",
Expand Down
2 changes: 1 addition & 1 deletion util/src/io/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ impl Write for &mut [u8] {
#[inline]
fn write(&mut self, data: &[u8]) -> io::Result<usize> {
let amt = cmp::min(data.len(), self.len());
let (a, b) = mem::replace(self, &mut []).split_at_mut(amt);
let (a, b) = mem::take(self).split_at_mut(amt);
a.copy_from_slice(&data[..amt]);
*self = b;
Ok(amt)
Expand Down

0 comments on commit 26f4143

Please sign in to comment.