Enable clippy::useless_conversion (#8767)

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:
Marshall Bowers
2024-03-03 10:22:55 -05:00
committed by GitHub
parent 20d133322a
commit fe04f69caf
30 changed files with 53 additions and 66 deletions
+2 -2
View File
@@ -335,7 +335,7 @@ impl TestAppContext {
.map(Keystroke::parse)
.map(Result::unwrap)
{
self.dispatch_keystroke(window, keystroke.into());
self.dispatch_keystroke(window, keystroke);
}
self.background_executor.run_until_parked()
@@ -347,7 +347,7 @@ impl TestAppContext {
/// This will also run the background executor until it's parked.
pub fn simulate_input(&mut self, window: AnyWindowHandle, input: &str) {
for keystroke in input.split("").map(Keystroke::parse).map(Result::unwrap) {
self.dispatch_keystroke(window, keystroke.into());
self.dispatch_keystroke(window, keystroke);
}
self.background_executor.run_until_parked()