Skip to content

Commit

Permalink
apply rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop committed Nov 18, 2022
1 parent 81da27d commit 1f3d373
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions crates/arena/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,10 @@ pub struct Arena<Idx, T> {
}

/// `Arena` does not store `Idx` therefore it is `Send` without its bound.
unsafe impl<Idx, T> Send for Arena<Idx, T>
where
T: Send,
{}
unsafe impl<Idx, T> Send for Arena<Idx, T> where T: Send {}

/// `Arena` does not store `Idx` therefore it is `Sync` without its bound.
unsafe impl<Idx, T> Sync for Arena<Idx, T>
where
T: Send,
{}
unsafe impl<Idx, T> Sync for Arena<Idx, T> where T: Send {}

impl<Idx, T> Default for Arena<Idx, T> {
fn default() -> Self {
Expand Down

0 comments on commit 1f3d373

Please sign in to comment.