File tree 5 files changed +16
-7
lines changed
5 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ pub mod scalar {
25
25
| ( ( x & 0xff00_u32 ) << 8 )
26
26
| ( ( x & 0x00ff_0000_u32 ) >> 8 )
27
27
| ( x & 0xff00_0000_u32 ) >> 24 ;
28
- RngT ( z0, z1, z2, z3)
28
+ Self ( z0, z1, z2, z3)
29
29
}
30
30
31
31
pub fn gen_u32 ( & mut self ) -> u32 {
@@ -88,7 +88,7 @@ pub mod vector {
88
88
| ( ( x & u32xN:: splat ( 0xff00 ) ) << 8 )
89
89
| ( ( x & u32xN:: splat ( 0x00ff_0000 ) ) >> 8 )
90
90
| ( x & u32xN:: splat ( 0xff00_0000 ) ) >> 24 ;
91
- RngT ( z0, z1, z2, z3)
91
+ Self ( z0, z1, z2, z3)
92
92
}
93
93
94
94
#[ inline( always) ]
Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ struct f64x2(f64, f64);
10
10
impl Add for f64x2 {
11
11
type Output = Self ;
12
12
fn add ( self , rhs : Self ) -> Self {
13
- f64x2 ( self . 0 + rhs. 0 , self . 1 + rhs. 1 )
13
+ Self ( self . 0 + rhs. 0 , self . 1 + rhs. 1 )
14
14
}
15
15
}
16
16
impl Div for f64x2 {
17
17
type Output = Self ;
18
18
fn div ( self , rhs : Self ) -> Self {
19
- f64x2 ( self . 0 / rhs. 0 , self . 1 / rhs. 1 )
19
+ Self ( self . 0 / rhs. 0 , self . 1 / rhs. 1 )
20
20
}
21
21
}
22
22
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ impl Triangle {
33
33
xformed[ k] = [ x, y, z] ;
34
34
}
35
35
36
- Triangle ( xformed)
36
+ Self ( xformed)
37
37
}
38
38
}
39
39
Original file line number Diff line number Diff line change 1
1
//! Implementation of `FromCast` and `IntoCast`.
2
- #![ cfg_attr( feature = "cargo-clippy" , allow( clippy:: stutter) ) ]
2
+ #![ cfg_attr(
3
+ feature = "cargo-clippy" ,
4
+ allow(
5
+ clippy:: module_name_repetitions,
6
+ clippy:: stutter
7
+ )
8
+ ) ]
3
9
4
10
/// Numeric cast from `T` to `Self`.
5
11
///
Original file line number Diff line number Diff line change 222
222
clippy:: cast_possible_truncation,
223
223
clippy:: cast_lossless,
224
224
clippy:: cast_possible_wrap,
225
- clippy:: cast_precision_loss
225
+ clippy:: cast_precision_loss,
226
+ // This lint is currently broken for generic code
227
+ // See https://github.com/rust-lang/rust-clippy/issues/3410
228
+ clippy:: use_self
226
229
)
227
230
) ]
228
231
#![ cfg_attr(
You can’t perform that action at this time.
0 commit comments