File tree Expand file tree Collapse file tree 4 files changed +0
-9
lines changed
clippy/clippy_lints/src/attrs Expand file tree Collapse file tree 4 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,6 @@ enum SimpleAttrKind {
1515}
1616
1717impl 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
2318 fn from ( value : & AttrKind ) -> Self {
2419 match value {
2520 AttrKind :: Normal ( attr) => {
Original file line number Diff line number Diff line change @@ -80,7 +80,6 @@ impl Idx for ThreadId {
8080}
8181
8282impl From < ThreadId > for u64 {
83- /// Return inner `u32` converted to `u64`.
8483 fn from ( t : ThreadId ) -> Self {
8584 t. 0 . into ( )
8685 }
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ impl Idx for VectorIdx {
3434}
3535
3636impl From < u32 > for VectorIdx {
37- /// Create new `VectorIdx` with the inner id of `u32`.
3837 #[ inline]
3938 fn from ( id : u32 ) -> Self {
4039 Self ( id)
Original file line number Diff line number Diff line change @@ -20,14 +20,12 @@ impl From<io::Error> for IoError {
2020}
2121
2222impl From < io:: ErrorKind > for IoError {
23- /// Convert a `io::ErrorKind` to a `io::Error` then wrap in `HostError`.
2423 fn from ( value : io:: ErrorKind ) -> Self {
2524 IoError :: HostError ( value. into ( ) )
2625 }
2726}
2827
2928impl From < Scalar > for IoError {
30- /// Create a `Raw` `IoError` with a `Scalar`.
3129 fn from ( value : Scalar ) -> Self {
3230 IoError :: Raw ( value)
3331 }
You can’t perform that action at this time.
0 commit comments