Skip to content

Commit 864445b

Browse files
committed
Improve formatting of Rc and Arc source
Add some line breaks where they were missing between blocks.
1 parent ad609b9 commit 864445b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

library/alloc/src/rc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ impl<T> Rc<T> {
656656
)?))
657657
}
658658
}
659+
659660
/// Constructs a new `Pin<Rc<T>>`. If `T` does not implement `Unpin`, then
660661
/// `value` will be pinned in memory and unable to be moved.
661662
#[inline]
@@ -678,6 +679,7 @@ impl<T, A: Allocator> Rc<T, A> {
678679
pub fn allocator(this: &Self) -> &A {
679680
&this.alloc
680681
}
682+
681683
/// Constructs a new `Rc` in the provided allocator.
682684
///
683685
/// # Examples

library/alloc/src/sync.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,7 @@ impl<T, A: Allocator> Arc<T, A> {
926926
))
927927
}
928928
}
929+
929930
/// Returns the inner value, if the `Arc` has exactly one strong reference.
930931
///
931932
/// Otherwise, an [`Err`] is returned with the same `Arc` that was
@@ -3192,6 +3193,7 @@ impl<T: ?Sized + PartialOrd, A: Allocator> PartialOrd for Arc<T, A> {
31923193
*(*self) >= *(*other)
31933194
}
31943195
}
3196+
31953197
#[stable(feature = "rust1", since = "1.0.0")]
31963198
impl<T: ?Sized + Ord, A: Allocator> Ord for Arc<T, A> {
31973199
/// Comparison for two `Arc`s.
@@ -3213,6 +3215,7 @@ impl<T: ?Sized + Ord, A: Allocator> Ord for Arc<T, A> {
32133215
(**self).cmp(&**other)
32143216
}
32153217
}
3218+
32163219
#[stable(feature = "rust1", since = "1.0.0")]
32173220
impl<T: ?Sized + Eq, A: Allocator> Eq for Arc<T, A> {}
32183221

0 commit comments

Comments
 (0)