File tree 4 files changed +0
-9
lines changed
clippy/clippy_lints/src/attrs
4 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,6 @@ enum SimpleAttrKind {
15
15
}
16
16
17
17
impl From < & AttrKind > for SimpleAttrKind {
18
- /// Convert an `AttrKind` to a `SimpleAttrKind`,
19
- /// if it's a `DocComment` then `Doc` is returned with no conversion.
20
- ///
21
- /// ## Cost
22
- /// If `AttrKind` is `DocComment` it's free, however if it's `Normal` there is heap allocation
23
18
fn from ( value : & AttrKind ) -> Self {
24
19
match value {
25
20
AttrKind :: Normal ( attr) => {
Original file line number Diff line number Diff line change @@ -80,7 +80,6 @@ impl Idx for ThreadId {
80
80
}
81
81
82
82
impl From < ThreadId > for u64 {
83
- /// Return inner `u32` converted to `u64`.
84
83
fn from ( t : ThreadId ) -> Self {
85
84
t. 0 . into ( )
86
85
}
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ impl Idx for VectorIdx {
34
34
}
35
35
36
36
impl From < u32 > for VectorIdx {
37
- /// Create new `VectorIdx` with the inner id of `u32`.
38
37
#[ inline]
39
38
fn from ( id : u32 ) -> Self {
40
39
Self ( id)
Original file line number Diff line number Diff line change @@ -20,14 +20,12 @@ impl From<io::Error> for IoError {
20
20
}
21
21
22
22
impl From < io:: ErrorKind > for IoError {
23
- /// Convert a `io::ErrorKind` to a `io::Error` then wrap in `HostError`.
24
23
fn from ( value : io:: ErrorKind ) -> Self {
25
24
IoError :: HostError ( value. into ( ) )
26
25
}
27
26
}
28
27
29
28
impl From < Scalar > for IoError {
30
- /// Create a `Raw` `IoError` with a `Scalar`.
31
29
fn from ( value : Scalar ) -> Self {
32
30
IoError :: Raw ( value)
33
31
}
You can’t perform that action at this time.
0 commit comments