Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellga committed Jul 29, 2024
1 parent 3d6c796 commit da738b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/impl_arc_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ use alloc::sync::Arc;
///
/// ***See also all methods for [`ArrayBase`]***
impl<A, D> ArcArray<A, D>
where
D: Dimension,
where D: Dimension
{
/// Returns `true` iff the inner `Arc` is not shared.
/// If you want to ensure the `Arc` is not concurrently cloned, you need to provide a `&mut self` to this function.
pub fn is_unique(&self) -> bool {
pub fn is_unique(&self) -> bool
{
// Only strong pointers are used in this crate.
Arc::strong_count(&self.data.0) == 1
}
Expand Down

0 comments on commit da738b8

Please # to comment.