Skip to content

Commit 489110f

Browse files
Rollup merge of rust-lang#62662 - DutchGhost:fix_space, r=sfackler
add spaces in front of trait requirements in libcore/cell.rs Adds spaces before trait requirements in `libcore/cell.rs`.
2 parents 615ba3a + 4e1d467 commit 489110f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/libcore/cell.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ impl<T:Copy> Clone for Cell<T> {
290290
}
291291

292292
#[stable(feature = "rust1", since = "1.0.0")]
293-
impl<T:Default> Default for Cell<T> {
293+
impl<T: Default> Default for Cell<T> {
294294
/// Creates a `Cell<T>`, with the `Default` value for T.
295295
#[inline]
296296
fn default() -> Cell<T> {
@@ -299,18 +299,18 @@ impl<T:Default> Default for Cell<T> {
299299
}
300300

301301
#[stable(feature = "rust1", since = "1.0.0")]
302-
impl<T:PartialEq + Copy> PartialEq for Cell<T> {
302+
impl<T: PartialEq + Copy> PartialEq for Cell<T> {
303303
#[inline]
304304
fn eq(&self, other: &Cell<T>) -> bool {
305305
self.get() == other.get()
306306
}
307307
}
308308

309309
#[stable(feature = "cell_eq", since = "1.2.0")]
310-
impl<T:Eq + Copy> Eq for Cell<T> {}
310+
impl<T: Eq + Copy> Eq for Cell<T> {}
311311

312312
#[stable(feature = "cell_ord", since = "1.10.0")]
313-
impl<T:PartialOrd + Copy> PartialOrd for Cell<T> {
313+
impl<T: PartialOrd + Copy> PartialOrd for Cell<T> {
314314
#[inline]
315315
fn partial_cmp(&self, other: &Cell<T>) -> Option<Ordering> {
316316
self.get().partial_cmp(&other.get())
@@ -338,7 +338,7 @@ impl<T:PartialOrd + Copy> PartialOrd for Cell<T> {
338338
}
339339

340340
#[stable(feature = "cell_ord", since = "1.10.0")]
341-
impl<T:Ord + Copy> Ord for Cell<T> {
341+
impl<T: Ord + Copy> Ord for Cell<T> {
342342
#[inline]
343343
fn cmp(&self, other: &Cell<T>) -> Ordering {
344344
self.get().cmp(&other.get())
@@ -1008,7 +1008,7 @@ impl<T: Clone> Clone for RefCell<T> {
10081008
}
10091009

10101010
#[stable(feature = "rust1", since = "1.0.0")]
1011-
impl<T:Default> Default for RefCell<T> {
1011+
impl<T: Default> Default for RefCell<T> {
10121012
/// Creates a `RefCell<T>`, with the `Default` value for T.
10131013
#[inline]
10141014
fn default() -> RefCell<T> {

0 commit comments

Comments
 (0)