Skip to content

Commit

Permalink
fix clippy lol
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed May 6, 2024
1 parent 86326e4 commit bdc63aa
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions core/tauri/src/async_runtime.rs
Expand Up @@ -42,7 +42,7 @@ impl GlobalRuntime {
}
}

fn spawn<F: Future>(&self, task: F) -> JoinHandle<F::Output>
fn spawn<F>(&self, task: F) -> JoinHandle<F::Output>
where
F: Future + Send + 'static,
F::Output: Send + 'static,
Expand Down Expand Up @@ -96,7 +96,7 @@ impl Runtime {
}

/// Spawns a future onto the runtime.
pub fn spawn<F: Future>(&self, task: F) -> JoinHandle<F::Output>
pub fn spawn<F>(&self, task: F) -> JoinHandle<F::Output>
where
F: Future + Send + 'static,
F::Output: Send + 'static,
Expand Down Expand Up @@ -189,7 +189,7 @@ impl RuntimeHandle {
}

/// Spawns a future onto the runtime.
pub fn spawn<F: Future>(&self, task: F) -> JoinHandle<F::Output>
pub fn spawn<F>(&self, task: F) -> JoinHandle<F::Output>
where
F: Future + Send + 'static,
F::Output: Send + 'static,
Expand Down
2 changes: 1 addition & 1 deletion tooling/cli/Cargo.toml
Expand Up @@ -6,7 +6,7 @@ name = "tauri-cli"
version = "1.5.12"
authors = [ "Tauri Programme within The Commons Conservancy" ]
edition = "2021"
rust-version = "1.60"
rust-version = "1.70"
categories = [ "gui", "web-programming" ]
license = "Apache-2.0 OR MIT"
homepage = "https://tauri.app"
Expand Down
2 changes: 1 addition & 1 deletion tooling/cli/src/build.rs
Expand Up @@ -160,7 +160,7 @@ pub fn command(mut options: Options, verbosity: u8) -> Result<()> {
}

if options.runner.is_none() {
options.runner = config_.build.runner.clone();
options.runner.clone_from(&config_.build.runner);
}

options
Expand Down
9 changes: 2 additions & 7 deletions tooling/cli/src/dev.rs
Expand Up @@ -192,14 +192,9 @@ fn command_internal(mut options: Options) -> Result<()> {
}

if options.runner.is_none() {
options.runner = config
.lock()
.unwrap()
.as_ref()
.unwrap()
.build
options
.runner
.clone();
.clone_from(&config.lock().unwrap().as_ref().unwrap().build.runner);
}

let mut cargo_features = config
Expand Down

0 comments on commit bdc63aa

Please sign in to comment.