Skip to content

Commit

Permalink
Add reminder to get rid of arc_make_mut_slice().
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Jun 24, 2024
1 parent 859254a commit c1b3cb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions all-is-cubes-base/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ where
}

/// As [`Arc::make_mut()`], but for slices, `Arc<[_]>`.
///
/// TODO: When Rust 1.81 is stable, remove this function since `make_mut()` will work.
/// <https://github.com/rust-lang/rust/pull/116113>
#[doc(hidden)] // internal helper function
#[inline]
pub fn arc_make_mut_slice<T: Clone>(mut arc: &mut Arc<[T]>) -> &mut [T] {
Expand Down

0 comments on commit c1b3cb3

Please sign in to comment.