Skip to content

Commit

Permalink
Removed spurious safety passage
Browse files Browse the repository at this point in the history
  • Loading branch information
vigna committed Nov 25, 2024
1 parent b4a43c9 commit 0b5988a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/utils/sync_slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,6 @@ impl<T> SyncCell<[T]> {
/// The resulting slice is `Sync` if `T` is `Sync`.
pub trait SyncSlice<T> {
/// Returns a `&[SyncCell<T>]` from a `&mut [T]`.
///
/// # Safety
///
/// Multiple thread can read from and write to the returned slice at the
/// same time. It is responsibility of the user to ensure that there are no
/// data races, which would cause undefined behavior.
fn as_sync_slice(&mut self) -> &[SyncCell<T>];
}

Expand Down

0 comments on commit 0b5988a

Please sign in to comment.