Enable clippy::useless_conversion (#8724)
This PR enables the [`clippy::useless_conversion`](https://rust-lang.github.io/rust-clippy/master/index.html#/useless_conversion) rule and fixes the outstanding violations. Release Notes: - N/A
This commit is contained in:
@@ -3665,7 +3665,7 @@ impl Project {
|
||||
proto::LspWorkStart {
|
||||
token,
|
||||
message: report.message,
|
||||
percentage: report.percentage.map(|p| p as u32),
|
||||
percentage: report.percentage.map(|p| p),
|
||||
},
|
||||
),
|
||||
})
|
||||
@@ -3691,7 +3691,7 @@ impl Project {
|
||||
proto::LspWorkProgress {
|
||||
token,
|
||||
message: report.message,
|
||||
percentage: report.percentage.map(|p| p as u32),
|
||||
percentage: report.percentage.map(|p| p),
|
||||
},
|
||||
),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user