From f4ece3654fcb84221466d88710c286cfaf723d9c Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Mon, 4 Sep 2023 11:11:35 -0300 Subject: [PATCH] lint --- tooling/cli/src/interface/mod.rs | 2 +- tooling/cli/src/interface/rust.rs | 8 ++++---- tooling/cli/src/mobile/android/dev.rs | 2 +- tooling/cli/src/mobile/ios/dev.rs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tooling/cli/src/interface/mod.rs b/tooling/cli/src/interface/mod.rs index c5805cbac0a8..3ab53af02867 100644 --- a/tooling/cli/src/interface/mod.rs +++ b/tooling/cli/src/interface/mod.rs @@ -95,7 +95,7 @@ pub trait Interface: Sized { options: Options, on_exit: F, ) -> crate::Result<()>; - fn mobile_dev crate::Result>>( + fn mobile_dev crate::Result>>( &mut self, options: MobileOptions, runner: R, diff --git a/tooling/cli/src/interface/rust.rs b/tooling/cli/src/interface/rust.rs index 239a2a48ed10..ed1e92fb1d69 100644 --- a/tooling/cli/src/interface/rust.rs +++ b/tooling/cli/src/interface/rust.rs @@ -197,7 +197,7 @@ impl Interface for Rust { } } - fn mobile_dev crate::Result>>( + fn mobile_dev crate::Result>>( &mut self, mut options: MobileOptions, runner: R, @@ -431,7 +431,7 @@ impl Rust { options: Options, run_args: Vec, on_exit: F, - ) -> crate::Result> { + ) -> crate::Result> { desktop::run_dev( options, run_args, @@ -441,10 +441,10 @@ impl Rust { self.product_name.clone(), on_exit, ) - .map(|c| Box::new(c) as Box) + .map(|c| Box::new(c) as Box) } - fn run_dev_watcher crate::Result>>( + fn run_dev_watcher crate::Result>>( &mut self, config: Option, run: Arc, diff --git a/tooling/cli/src/mobile/android/dev.rs b/tooling/cli/src/mobile/android/dev.rs index 058d8da7e80a..5f739f067658 100644 --- a/tooling/cli/src/mobile/android/dev.rs +++ b/tooling/cli/src/mobile/android/dev.rs @@ -235,7 +235,7 @@ fn run_dev( crate::dev::wait_dev_process(c.clone(), move |status, reason| { crate::dev::on_app_exit(status, reason, exit_on_panic, no_watch) }); - Ok(Box::new(c) as Box) + Ok(Box::new(c) as Box) } Err(e) => { crate::dev::kill_before_dev_process(); diff --git a/tooling/cli/src/mobile/ios/dev.rs b/tooling/cli/src/mobile/ios/dev.rs index ec866cdc5d06..1e2b9ede52c5 100644 --- a/tooling/cli/src/mobile/ios/dev.rs +++ b/tooling/cli/src/mobile/ios/dev.rs @@ -221,7 +221,7 @@ fn run_dev( crate::dev::wait_dev_process(c.clone(), move |status, reason| { crate::dev::on_app_exit(status, reason, exit_on_panic, no_watch) }); - Ok(Box::new(c) as Box) + Ok(Box::new(c) as Box) } Err(e) => { crate::dev::kill_before_dev_process();