Skip to content

Commit

Permalink
Attempt to fix the failure described in #40
Browse files Browse the repository at this point in the history
  • Loading branch information
myrrlyn committed Jan 21, 2020
1 parent a90e931 commit 888cf33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/slice/api.rs
Expand Up @@ -2254,7 +2254,11 @@ where O: 'a + BitOrder, T: 'a + BitStore {
) -> Self::Mut {
BitMut {
data: *slice.get_unchecked(self),
slot: slice.get_unchecked_mut(self ..= self),
slot: {
let mut bitptr = slice.bitptr();
bitptr.set_len(1);
bitptr.into_bitslice_mut()
},
}
}

Expand Down

0 comments on commit 888cf33

Please sign in to comment.