Skip to content

Commit

Permalink
chore: Revert "chore: update to nightly-2021-09-22, fix clippy (#115)"
Browse files Browse the repository at this point in the history
This reverts commit bbf73a7.

It turns out some kind of change in linker behavior renders our cool
test stuff hilariously broken:

https://github.com/hawkw/mycelium/runs/3709572933?check_suite_focus=true

Perhaps @mystor knows about what's going on here. For now, though, I'm
just gonna revert the nightly bump so that we can like, build mycelium
again lol.
  • Loading branch information
hawkw committed Sep 25, 2021
1 parent bbf73a7 commit e55166e
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-09-22"
channel = "nightly-2021-06-05"
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::take(self).split_at_mut(amt);
let (a, b) = mem::replace(self, &mut []).split_at_mut(amt);
a.copy_from_slice(&data[..amt]);
*self = b;
Ok(amt)
Expand Down

0 comments on commit e55166e

Please sign in to comment.