From 6bae455f86b76715c3c475c93b323bd41f30fb5e Mon Sep 17 00:00:00 2001 From: wendrul Date: Thu, 12 Dec 2024 11:40:02 +0100 Subject: [PATCH] Remove unused imports --- backend/windmill-worker/src/ansible_executor.rs | 2 +- backend/windmill-worker/src/common.rs | 3 +-- backend/windmill-worker/src/csharp_executor.rs | 5 ++--- backend/windmill-worker/src/php_executor.rs | 2 +- backend/windmill-worker/src/rust_executor.rs | 2 +- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/backend/windmill-worker/src/ansible_executor.rs b/backend/windmill-worker/src/ansible_executor.rs index ba710925b7..068e5baa31 100644 --- a/backend/windmill-worker/src/ansible_executor.rs +++ b/backend/windmill-worker/src/ansible_executor.rs @@ -2,7 +2,7 @@ use std::{ collections::HashMap, os::unix::fs::PermissionsExt, - path::{Path, PathBuf}, + path::PathBuf, process::Stdio, }; diff --git a/backend/windmill-worker/src/common.rs b/backend/windmill-worker/src/common.rs index ed268ec5ad..51385ff367 100644 --- a/backend/windmill-worker/src/common.rs +++ b/backend/windmill-worker/src/common.rs @@ -33,8 +33,7 @@ use anyhow::{anyhow, Result}; use std::path::Path; use std::{ - collections::{hash_map::DefaultHasher, HashMap}, - hash::{Hash, Hasher}, + collections::HashMap, sync::Arc, time::Duration, }; diff --git a/backend/windmill-worker/src/csharp_executor.rs b/backend/windmill-worker/src/csharp_executor.rs index 9d38865f9c..bab2c7f5b6 100644 --- a/backend/windmill-worker/src/csharp_executor.rs +++ b/backend/windmill-worker/src/csharp_executor.rs @@ -1,9 +1,8 @@ use anyhow::anyhow; use serde_json::value::RawValue; -use std::{collections::HashMap, path::Path, process::Stdio}; +use std::{collections::HashMap, process::Stdio}; use uuid::Uuid; use windmill_parser_csharp::parse_csharp_reqs; -use windmill_parser_rust::parse_rust_deps_into_manifest; use itertools::Itertools; use tokio::{fs::File, io::AsyncReadExt, process::Command}; @@ -22,7 +21,7 @@ use crate::{ }, handle_child::handle_child, AuthedClientBackgroundTask, CSHARP_CACHE_DIR, DISABLE_NSJAIL, DISABLE_NUSER, DOTNET_PATH, - HOME_ENV, NSJAIL_PATH, PATH_ENV, RUST_CACHE_DIR, TZ_ENV, + HOME_ENV, NSJAIL_PATH, PATH_ENV, TZ_ENV, }; #[cfg(windows)] diff --git a/backend/windmill-worker/src/php_executor.rs b/backend/windmill-worker/src/php_executor.rs index 25000e020c..cb6b08f4e8 100644 --- a/backend/windmill-worker/src/php_executor.rs +++ b/backend/windmill-worker/src/php_executor.rs @@ -2,7 +2,7 @@ use convert_case::{Case, Casing}; use itertools::Itertools; use regex::Regex; use serde_json::value::RawValue; -use std::{collections::HashMap, path::Path, process::Stdio}; +use std::{collections::HashMap, process::Stdio}; use tokio::{fs::File, io::AsyncReadExt, process::Command}; use uuid::Uuid; use windmill_common::{ diff --git a/backend/windmill-worker/src/rust_executor.rs b/backend/windmill-worker/src/rust_executor.rs index 7032823cb2..c26d4d5823 100644 --- a/backend/windmill-worker/src/rust_executor.rs +++ b/backend/windmill-worker/src/rust_executor.rs @@ -1,5 +1,5 @@ use serde_json::value::RawValue; -use std::{collections::HashMap, path::Path, process::Stdio}; +use std::{collections::HashMap, process::Stdio}; use uuid::Uuid; use windmill_parser_rust::parse_rust_deps_into_manifest;