mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
chore(deps): remove unused deps from cli (#9711)
* chore(deps): remove unused deps from cli * fix mac build * clippy
This commit is contained in:
@@ -269,7 +269,7 @@ fn run_dev(
|
||||
}
|
||||
Err(e) => {
|
||||
crate::dev::kill_before_dev_process();
|
||||
Err(e.into())
|
||||
Err(e)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -279,12 +279,6 @@ fn run_dev(
|
||||
)
|
||||
}
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
enum RunError {
|
||||
#[error("{0}")]
|
||||
RunFailed(String),
|
||||
}
|
||||
|
||||
fn run(
|
||||
device: &Device<'_>,
|
||||
options: MobileOptions,
|
||||
@@ -292,7 +286,7 @@ fn run(
|
||||
env: &Env,
|
||||
metadata: &AndroidMetadata,
|
||||
noise_level: NoiseLevel,
|
||||
) -> Result<DevChild, RunError> {
|
||||
) -> crate::Result<DevChild> {
|
||||
let profile = if options.debug {
|
||||
Profile::Debug
|
||||
} else {
|
||||
@@ -317,5 +311,5 @@ fn run(
|
||||
".MainActivity".into(),
|
||||
)
|
||||
.map(DevChild::new)
|
||||
.map_err(|e| RunError::RunFailed(e.to_string()))
|
||||
.map_err(Into::into)
|
||||
}
|
||||
|
||||
@@ -244,17 +244,12 @@ fn run_dev(
|
||||
)
|
||||
}
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
enum RunError {
|
||||
#[error("{0}")]
|
||||
RunFailed(String),
|
||||
}
|
||||
fn run(
|
||||
device: &Device<'_>,
|
||||
options: MobileOptions,
|
||||
config: &AppleConfig,
|
||||
env: &Env,
|
||||
) -> Result<DevChild, RunError> {
|
||||
) -> crate::Result<DevChild> {
|
||||
let profile = if options.debug {
|
||||
Profile::Debug
|
||||
} else {
|
||||
@@ -270,5 +265,5 @@ fn run(
|
||||
profile,
|
||||
)
|
||||
.map(DevChild::new)
|
||||
.map_err(|e| RunError::RunFailed(e.to_string()))
|
||||
.map_err(Into::into)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user