Skip to content

Commit 8f8f08b

Browse files
author
Alexander Regueiro
committed
libs: code formatting
1 parent c404e5a commit 8f8f08b

File tree

27 files changed

+66
-67
lines changed

27 files changed

+66
-67
lines changed

src/liballoc/collections/btree/map.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1835,12 +1835,12 @@ fn range_search<BorrowType, K, V, Q: ?Sized, R: RangeBounds<Q>>(
18351835
where Q: Ord, K: Borrow<Q>
18361836
{
18371837
match (range.start_bound(), range.end_bound()) {
1838-
(Excluded(s), Excluded(e)) if s==e =>
1838+
(Excluded(s), Excluded(e)) if s == e =>
18391839
panic!("range start and end are equal and excluded in BTreeMap"),
18401840
(Included(s), Included(e)) |
18411841
(Included(s), Excluded(e)) |
18421842
(Excluded(s), Included(e)) |
1843-
(Excluded(s), Excluded(e)) if s>e =>
1843+
(Excluded(s), Excluded(e)) if s > e =>
18441844
panic!("range start is greater than range end in BTreeMap"),
18451845
_ => {},
18461846
};

src/liballoc/vec.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1792,7 +1792,7 @@ trait SpecExtend<T, I> {
17921792
}
17931793

17941794
impl<T, I> SpecExtend<T, I> for Vec<T>
1795-
where I: Iterator<Item=T>,
1795+
where I: Iterator<Item = T>,
17961796
{
17971797
default fn from_iter(mut iterator: I) -> Self {
17981798
// Unroll the first iteration, as the vector is going to be
@@ -1822,7 +1822,7 @@ impl<T, I> SpecExtend<T, I> for Vec<T>
18221822
}
18231823

18241824
impl<T, I> SpecExtend<T, I> for Vec<T>
1825-
where I: TrustedLen<Item=T>,
1825+
where I: TrustedLen<Item = T>,
18261826
{
18271827
default fn from_iter(iterator: I) -> Self {
18281828
let mut vector = Vec::new();
@@ -1885,7 +1885,7 @@ impl<T> SpecExtend<T, IntoIter<T>> for Vec<T> {
18851885
}
18861886

18871887
impl<'a, T: 'a, I> SpecExtend<&'a T, I> for Vec<T>
1888-
where I: Iterator<Item=&'a T>,
1888+
where I: Iterator<Item = &'a T>,
18891889
T: Clone,
18901890
{
18911891
default fn from_iter(iterator: I) -> Self {
@@ -1972,7 +1972,7 @@ impl<T> Vec<T> {
19721972
#[inline]
19731973
#[stable(feature = "vec_splice", since = "1.21.0")]
19741974
pub fn splice<R, I>(&mut self, range: R, replace_with: I) -> Splice<'_, I::IntoIter>
1975-
where R: RangeBounds<usize>, I: IntoIterator<Item=T>
1975+
where R: RangeBounds<usize>, I: IntoIterator<Item = T>
19761976
{
19771977
Splice {
19781978
drain: self.drain(range),
@@ -2200,7 +2200,7 @@ impl<'a, T: Clone> From<&'a mut [T]> for Vec<T> {
22002200
}
22012201

22022202
#[stable(feature = "vec_from_cow_slice", since = "1.14.0")]
2203-
impl<'a, T> From<Cow<'a, [T]>> for Vec<T> where [T]: ToOwned<Owned=Vec<T>> {
2203+
impl<'a, T> From<Cow<'a, [T]>> for Vec<T> where [T]: ToOwned<Owned = Vec<T>> {
22042204
fn from(s: Cow<'a, [T]>) -> Vec<T> {
22052205
s.into_owned()
22062206
}
@@ -2608,7 +2608,7 @@ impl<T> Drain<'_, T> {
26082608
/// that have been moved out.
26092609
/// Fill that range as much as possible with new elements from the `replace_with` iterator.
26102610
/// Returns `true` if we filled the entire range. (`replace_with.next()` didn’t return `None`.)
2611-
unsafe fn fill<I: Iterator<Item=T>>(&mut self, replace_with: &mut I) -> bool {
2611+
unsafe fn fill<I: Iterator<Item = T>>(&mut self, replace_with: &mut I) -> bool {
26122612
let vec = self.vec.as_mut();
26132613
let range_start = vec.len;
26142614
let range_end = self.tail_start;

src/libcore/fmt/num.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use ptr;
99
use mem::MaybeUninit;
1010

1111
#[doc(hidden)]
12-
trait Int: PartialEq + PartialOrd + Div<Output=Self> + Rem<Output=Self> +
13-
Sub<Output=Self> + Copy {
12+
trait Int: PartialEq + PartialOrd + Div<Output = Self> + Rem<Output = Self> +
13+
Sub<Output = Self> + Copy {
1414
fn zero() -> Self;
1515
fn from_u8(u: u8) -> Self;
1616
fn to_u8(&self) -> u8;

src/libcore/iter/traits/iterator.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ pub trait Iterator {
421421
#[inline]
422422
#[stable(feature = "rust1", since = "1.0.0")]
423423
fn chain<U>(self, other: U) -> Chain<Self, U::IntoIter> where
424-
Self: Sized, U: IntoIterator<Item=Self::Item>,
424+
Self: Sized, U: IntoIterator<Item = Self::Item>,
425425
{
426426
Chain::new(self, other.into_iter())
427427
}
@@ -1565,7 +1565,7 @@ pub trait Iterator {
15651565
#[inline]
15661566
#[stable(feature = "iterator_try_fold", since = "1.27.0")]
15671567
fn try_fold<B, F, R>(&mut self, init: B, mut f: F) -> R where
1568-
Self: Sized, F: FnMut(B, Self::Item) -> R, R: Try<Ok=B>
1568+
Self: Sized, F: FnMut(B, Self::Item) -> R, R: Try<Ok = B>
15691569
{
15701570
let mut accum = init;
15711571
while let Some(x) = self.next() {
@@ -2275,7 +2275,7 @@ pub trait Iterator {
22752275
/// ```
22762276
#[stable(feature = "rust1", since = "1.0.0")]
22772277
fn cloned<'a, T: 'a>(self) -> Cloned<Self>
2278-
where Self: Sized + Iterator<Item=&'a T>, T: Clone
2278+
where Self: Sized + Iterator<Item = &'a T>, T: Clone
22792279
{
22802280
Cloned::new(self)
22812281
}

src/libcore/num/bignum.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ macro_rules! define_bignum {
480480
/// The digit type for `Big32x40`.
481481
pub type Digit32 = u32;
482482

483-
define_bignum!(Big32x40: type=Digit32, n=40);
483+
define_bignum!(Big32x40: type = Digit32, n=40);
484484

485485
// this one is used for testing only.
486486
#[doc(hidden)]

src/libcore/num/dec2flt/num.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub fn compare_with_half_ulp(f: &Big, ones_place: usize) -> Ordering {
3636
/// 1. using `FromStr` on `&[u8]` requires `from_utf8_unchecked`, which is bad, and
3737
/// 2. piecing together the results of `integral.parse()` and `fractional.parse()` is
3838
/// more complicated than this entire function.
39-
pub fn from_str_unchecked<'a, T>(bytes: T) -> u64 where T : IntoIterator<Item=&'a u8> {
39+
pub fn from_str_unchecked<'a, T>(bytes: T) -> u64 where T : IntoIterator<Item = &'a u8> {
4040
let mut result = 0;
4141
for &c in bytes {
4242
result = result * 10 + (c - b'0') as u64;

src/libcore/num/dec2flt/rawfp.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ pub trait RawFloat
4848
: Copy
4949
+ Debug
5050
+ LowerExp
51-
+ Mul<Output=Self>
52-
+ Div<Output=Self>
53-
+ Neg<Output=Self>
51+
+ Mul<Output = Self>
52+
+ Div<Output = Self>
53+
+ Neg<Output = Self>
5454
{
5555
const INFINITY: Self;
5656
const NAN: Self;

src/libcore/ops/arith.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
label="no implementation for `{Self} + {RHS}`",
7979
)]
8080
#[doc(alias = "+")]
81-
pub trait Add<RHS=Self> {
81+
pub trait Add<RHS = Self> {
8282
/// The resulting type after applying the `+` operator.
8383
#[stable(feature = "rust1", since = "1.0.0")]
8484
type Output;
@@ -176,7 +176,7 @@ add_impl! { usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 f32 f64 }
176176
#[rustc_on_unimplemented(message="cannot subtract `{RHS}` from `{Self}`",
177177
label="no implementation for `{Self} - {RHS}`")]
178178
#[doc(alias = "-")]
179-
pub trait Sub<RHS=Self> {
179+
pub trait Sub<RHS = Self> {
180180
/// The resulting type after applying the `-` operator.
181181
#[stable(feature = "rust1", since = "1.0.0")]
182182
type Output;
@@ -296,7 +296,7 @@ sub_impl! { usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 f32 f64 }
296296
#[rustc_on_unimplemented(message="cannot multiply `{RHS}` to `{Self}`",
297297
label="no implementation for `{Self} * {RHS}`")]
298298
#[doc(alias = "*")]
299-
pub trait Mul<RHS=Self> {
299+
pub trait Mul<RHS = Self> {
300300
/// The resulting type after applying the `*` operator.
301301
#[stable(feature = "rust1", since = "1.0.0")]
302302
type Output;
@@ -420,7 +420,7 @@ mul_impl! { usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 f32 f64 }
420420
#[rustc_on_unimplemented(message="cannot divide `{Self}` by `{RHS}`",
421421
label="no implementation for `{Self} / {RHS}`")]
422422
#[doc(alias = "/")]
423-
pub trait Div<RHS=Self> {
423+
pub trait Div<RHS = Self> {
424424
/// The resulting type after applying the `/` operator.
425425
#[stable(feature = "rust1", since = "1.0.0")]
426426
type Output;
@@ -505,7 +505,7 @@ div_impl_float! { f32 f64 }
505505
#[rustc_on_unimplemented(message="cannot mod `{Self}` by `{RHS}`",
506506
label="no implementation for `{Self} % {RHS}`")]
507507
#[doc(alias = "%")]
508-
pub trait Rem<RHS=Self> {
508+
pub trait Rem<RHS = Self> {
509509
/// The resulting type after applying the `%` operator.
510510
#[stable(feature = "rust1", since = "1.0.0")]
511511
type Output = Self;
@@ -668,7 +668,7 @@ neg_impl_numeric! { isize i8 i16 i32 i64 i128 f32 f64 }
668668
label="no implementation for `{Self} += {Rhs}`")]
669669
#[doc(alias = "+")]
670670
#[doc(alias = "+=")]
671-
pub trait AddAssign<Rhs=Self> {
671+
pub trait AddAssign<Rhs = Self> {
672672
/// Performs the `+=` operation.
673673
#[stable(feature = "op_assign_traits", since = "1.8.0")]
674674
fn add_assign(&mut self, rhs: Rhs);
@@ -724,7 +724,7 @@ add_assign_impl! { usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 f32 f64 }
724724
label="no implementation for `{Self} -= {Rhs}`")]
725725
#[doc(alias = "-")]
726726
#[doc(alias = "-=")]
727-
pub trait SubAssign<Rhs=Self> {
727+
pub trait SubAssign<Rhs = Self> {
728728
/// Performs the `-=` operation.
729729
#[stable(feature = "op_assign_traits", since = "1.8.0")]
730730
fn sub_assign(&mut self, rhs: Rhs);
@@ -771,7 +771,7 @@ sub_assign_impl! { usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 f32 f64 }
771771
label="no implementation for `{Self} *= {Rhs}`")]
772772
#[doc(alias = "*")]
773773
#[doc(alias = "*=")]
774-
pub trait MulAssign<Rhs=Self> {
774+
pub trait MulAssign<Rhs = Self> {
775775
/// Performs the `*=` operation.
776776
#[stable(feature = "op_assign_traits", since = "1.8.0")]
777777
fn mul_assign(&mut self, rhs: Rhs);
@@ -818,7 +818,7 @@ mul_assign_impl! { usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 f32 f64 }
818818
label="no implementation for `{Self} /= {Rhs}`")]
819819
#[doc(alias = "/")]
820820
#[doc(alias = "/=")]
821-
pub trait DivAssign<Rhs=Self> {
821+
pub trait DivAssign<Rhs = Self> {
822822
/// Performs the `/=` operation.
823823
#[stable(feature = "op_assign_traits", since = "1.8.0")]
824824
fn div_assign(&mut self, rhs: Rhs);
@@ -868,7 +868,7 @@ div_assign_impl! { usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 f32 f64 }
868868
label="no implementation for `{Self} %= {Rhs}`")]
869869
#[doc(alias = "%")]
870870
#[doc(alias = "%=")]
871-
pub trait RemAssign<Rhs=Self> {
871+
pub trait RemAssign<Rhs = Self> {
872872
/// Performs the `%=` operation.
873873
#[stable(feature = "op_assign_traits", since = "1.8.0")]
874874
fn rem_assign(&mut self, rhs: Rhs);

src/libcore/ops/bit.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ not_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
114114
#[stable(feature = "rust1", since = "1.0.0")]
115115
#[rustc_on_unimplemented(message="no implementation for `{Self} & {RHS}`",
116116
label="no implementation for `{Self} & {RHS}`")]
117-
pub trait BitAnd<RHS=Self> {
117+
pub trait BitAnd<RHS = Self> {
118118
/// The resulting type after applying the `&` operator.
119119
#[stable(feature = "rust1", since = "1.0.0")]
120120
type Output;
@@ -198,7 +198,7 @@ bitand_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
198198
#[stable(feature = "rust1", since = "1.0.0")]
199199
#[rustc_on_unimplemented(message="no implementation for `{Self} | {RHS}`",
200200
label="no implementation for `{Self} | {RHS}`")]
201-
pub trait BitOr<RHS=Self> {
201+
pub trait BitOr<RHS = Self> {
202202
/// The resulting type after applying the `|` operator.
203203
#[stable(feature = "rust1", since = "1.0.0")]
204204
type Output;
@@ -285,7 +285,7 @@ bitor_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
285285
#[stable(feature = "rust1", since = "1.0.0")]
286286
#[rustc_on_unimplemented(message="no implementation for `{Self} ^ {RHS}`",
287287
label="no implementation for `{Self} ^ {RHS}`")]
288-
pub trait BitXor<RHS=Self> {
288+
pub trait BitXor<RHS = Self> {
289289
/// The resulting type after applying the `^` operator.
290290
#[stable(feature = "rust1", since = "1.0.0")]
291291
type Output;
@@ -373,7 +373,7 @@ bitxor_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
373373
#[stable(feature = "rust1", since = "1.0.0")]
374374
#[rustc_on_unimplemented(message="no implementation for `{Self} << {RHS}`",
375375
label="no implementation for `{Self} << {RHS}`")]
376-
pub trait Shl<RHS=Self> {
376+
pub trait Shl<RHS = Self> {
377377
/// The resulting type after applying the `<<` operator.
378378
#[stable(feature = "rust1", since = "1.0.0")]
379379
type Output;
@@ -482,7 +482,7 @@ shl_impl_all! { u8 u16 u32 u64 u128 usize i8 i16 i32 i64 isize i128 }
482482
#[stable(feature = "rust1", since = "1.0.0")]
483483
#[rustc_on_unimplemented(message="no implementation for `{Self} >> {RHS}`",
484484
label="no implementation for `{Self} >> {RHS}`")]
485-
pub trait Shr<RHS=Self> {
485+
pub trait Shr<RHS = Self> {
486486
/// The resulting type after applying the `>>` operator.
487487
#[stable(feature = "rust1", since = "1.0.0")]
488488
type Output;
@@ -598,7 +598,7 @@ shr_impl_all! { u8 u16 u32 u64 u128 usize i8 i16 i32 i64 i128 isize }
598598
#[stable(feature = "op_assign_traits", since = "1.8.0")]
599599
#[rustc_on_unimplemented(message="no implementation for `{Self} &= {Rhs}`",
600600
label="no implementation for `{Self} &= {Rhs}`")]
601-
pub trait BitAndAssign<Rhs=Self> {
601+
pub trait BitAndAssign<Rhs = Self> {
602602
/// Performs the `&=` operation.
603603
#[stable(feature = "op_assign_traits", since = "1.8.0")]
604604
fn bitand_assign(&mut self, rhs: Rhs);
@@ -647,7 +647,7 @@ bitand_assign_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
647647
#[stable(feature = "op_assign_traits", since = "1.8.0")]
648648
#[rustc_on_unimplemented(message="no implementation for `{Self} |= {Rhs}`",
649649
label="no implementation for `{Self} |= {Rhs}`")]
650-
pub trait BitOrAssign<Rhs=Self> {
650+
pub trait BitOrAssign<Rhs = Self> {
651651
/// Performs the `|=` operation.
652652
#[stable(feature = "op_assign_traits", since = "1.8.0")]
653653
fn bitor_assign(&mut self, rhs: Rhs);
@@ -696,7 +696,7 @@ bitor_assign_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
696696
#[stable(feature = "op_assign_traits", since = "1.8.0")]
697697
#[rustc_on_unimplemented(message="no implementation for `{Self} ^= {Rhs}`",
698698
label="no implementation for `{Self} ^= {Rhs}`")]
699-
pub trait BitXorAssign<Rhs=Self> {
699+
pub trait BitXorAssign<Rhs = Self> {
700700
/// Performs the `^=` operation.
701701
#[stable(feature = "op_assign_traits", since = "1.8.0")]
702702
fn bitxor_assign(&mut self, rhs: Rhs);
@@ -743,7 +743,7 @@ bitxor_assign_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
743743
#[stable(feature = "op_assign_traits", since = "1.8.0")]
744744
#[rustc_on_unimplemented(message="no implementation for `{Self} <<= {Rhs}`",
745745
label="no implementation for `{Self} <<= {Rhs}`")]
746-
pub trait ShlAssign<Rhs=Self> {
746+
pub trait ShlAssign<Rhs = Self> {
747747
/// Performs the `<<=` operation.
748748
#[stable(feature = "op_assign_traits", since = "1.8.0")]
749749
fn shl_assign(&mut self, rhs: Rhs);
@@ -811,7 +811,7 @@ shl_assign_impl_all! { u8 u16 u32 u64 u128 usize i8 i16 i32 i64 i128 isize }
811811
#[stable(feature = "op_assign_traits", since = "1.8.0")]
812812
#[rustc_on_unimplemented(message="no implementation for `{Self} >>= {Rhs}`",
813813
label="no implementation for `{Self} >>= {Rhs}`")]
814-
pub trait ShrAssign<Rhs=Self> {
814+
pub trait ShrAssign<Rhs = Self> {
815815
/// Performs the `>>=` operation.
816816
#[stable(feature = "op_assign_traits", since = "1.8.0")]
817817
fn shr_assign(&mut self, rhs: Rhs);

src/libcore/option.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ impl<A, V: FromIterator<A>> FromIterator<Option<A>> for Option<V> {
13211321
///
13221322
/// [`Iterator`]: ../iter/trait.Iterator.html
13231323
#[inline]
1324-
fn from_iter<I: IntoIterator<Item=Option<A>>>(iter: I) -> Option<V> {
1324+
fn from_iter<I: IntoIterator<Item = Option<A>>>(iter: I) -> Option<V> {
13251325
// FIXME(#11084): This could be replaced with Iterator::scan when this
13261326
// performance bug is closed.
13271327

@@ -1330,7 +1330,7 @@ impl<A, V: FromIterator<A>> FromIterator<Option<A>> for Option<V> {
13301330
found_none: bool,
13311331
}
13321332

1333-
impl<T, Iter: Iterator<Item=Option<T>>> Iterator for Adapter<Iter> {
1333+
impl<T, Iter: Iterator<Item = Option<T>>> Iterator for Adapter<Iter> {
13341334
type Item = T;
13351335

13361336
#[inline]

src/libcore/result.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ impl<A, E, V: FromIterator<A>> FromIterator<Result<A, E>> for Result<V, E> {
12031203
/// assert!(res == Ok(vec![2, 3]));
12041204
/// ```
12051205
#[inline]
1206-
fn from_iter<I: IntoIterator<Item=Result<A, E>>>(iter: I) -> Result<V, E> {
1206+
fn from_iter<I: IntoIterator<Item = Result<A, E>>>(iter: I) -> Result<V, E> {
12071207
// FIXME(#11084): This could be replaced with Iterator::scan when this
12081208
// performance bug is closed.
12091209

@@ -1212,7 +1212,7 @@ impl<A, E, V: FromIterator<A>> FromIterator<Result<A, E>> for Result<V, E> {
12121212
err: Option<E>,
12131213
}
12141214

1215-
impl<T, E, Iter: Iterator<Item=Result<T, E>>> Iterator for Adapter<Iter, E> {
1215+
impl<T, E, Iter: Iterator<Item = Result<T, E>>> Iterator for Adapter<Iter, E> {
12161216
type Item = T;
12171217

12181218
#[inline]

src/libcore/slice/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2970,7 +2970,7 @@ macro_rules! iterator {
29702970

29712971
#[inline]
29722972
fn try_fold<B, F, R>(&mut self, init: B, mut f: F) -> R where
2973-
Self: Sized, F: FnMut(B, Self::Item) -> R, R: Try<Ok=B>
2973+
Self: Sized, F: FnMut(B, Self::Item) -> R, R: Try<Ok = B>
29742974
{
29752975
// manual unrolling is needed when there are conditional exits from the loop
29762976
let mut accum = init;
@@ -3060,7 +3060,7 @@ macro_rules! iterator {
30603060

30613061
#[inline]
30623062
fn try_rfold<B, F, R>(&mut self, init: B, mut f: F) -> R where
3063-
Self: Sized, F: FnMut(B, Self::Item) -> R, R: Try<Ok=B>
3063+
Self: Sized, F: FnMut(B, Self::Item) -> R, R: Try<Ok = B>
30643064
{
30653065
// manual unrolling is needed when there are conditional exits from the loop
30663066
let mut accum = init;
@@ -3613,7 +3613,7 @@ struct GenericSplitN<I> {
36133613
count: usize,
36143614
}
36153615

3616-
impl<T, I: SplitIter<Item=T>> Iterator for GenericSplitN<I> {
3616+
impl<T, I: SplitIter<Item = T>> Iterator for GenericSplitN<I> {
36173617
type Item = T;
36183618

36193619
#[inline]

src/libcore/tests/num/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ macro_rules! assume_usize_width {
5252
/// Helper function for testing numeric operations
5353
pub fn test_num<T>(ten: T, two: T) where
5454
T: PartialEq
55-
+ Add<Output=T> + Sub<Output=T>
56-
+ Mul<Output=T> + Div<Output=T>
57-
+ Rem<Output=T> + Debug
55+
+ Add<Output = T> + Sub<Output = T>
56+
+ Mul<Output = T> + Div<Output = T>
57+
+ Rem<Output = T> + Debug
5858
+ Copy
5959
{
6060
assert_eq!(ten.add(two), ten + two);

0 commit comments

Comments
 (0)