diff --git a/src-tauri/src/commands/docker.rs b/src-tauri/src/commands/docker.rs index 62de158..d587b25 100644 --- a/src-tauri/src/commands/docker.rs +++ b/src-tauri/src/commands/docker.rs @@ -739,7 +739,17 @@ async fn transfer_schema_only( docker_host: &Option, ) -> TuskResult<()> { let has_local = try_local_pg_dump().await; - transfer_schema_only_with(app, clone_id, source_url, container_name, database, pg_version, docker_host, has_local).await + transfer_schema_only_with( + app, + clone_id, + source_url, + container_name, + database, + pg_version, + docker_host, + has_local, + ) + .await } #[allow(clippy::too_many_arguments)] diff --git a/src-tauri/src/commands/snapshot.rs b/src-tauri/src/commands/snapshot.rs index fa57d5c..03d0d25 100644 --- a/src-tauri/src/commands/snapshot.rs +++ b/src-tauri/src/commands/snapshot.rs @@ -46,7 +46,10 @@ pub async fn create_snapshot( if params.include_dependencies { for fk in &fk_rows { - if target_tables.iter().any(|(s, t)| s == &fk.schema && t == &fk.table) { + if target_tables + .iter() + .any(|(s, t)| s == &fk.schema && t == &fk.table) + { let parent = (fk.ref_schema.clone(), fk.ref_table.clone()); if !target_tables.contains(&parent) { target_tables.push(parent); @@ -322,7 +325,7 @@ pub async fn list_snapshots(app: AppHandle) -> TuskResult> let dir = app .path() .app_data_dir() - .map_err(|e| TuskError::Custom(e.to_string()))? + .map_err(|e| TuskError::Config(e.to_string()))? .join("snapshots"); if !dir.exists() {