We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 408a5f1 commit 9bc9f95Copy full SHA for 9bc9f95
src/lib.rs
@@ -610,7 +610,7 @@ where
610
/// assert_eq!(dst, [1, 2]);
611
/// ```
612
pub fn as_slice(&self) -> Volatile<&[T], A> {
613
- self.map(|array| &*array)
+ self.map(|array| &array[..])
614
}
615
616
/// Converts a mutable array reference to a mutable slice.
@@ -639,7 +639,7 @@ where
639
where
640
R: DerefMut,
641
{
642
- self.map_mut(|array| &mut *array)
+ self.map_mut(|array| &mut array[..])
643
644
645
0 commit comments