From 2380c3b4f60a8354af274a1a832fabe4a4dc345a Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Tue, 21 Nov 2023 21:58:43 -0800 Subject: [PATCH] Polish. --- crates/cli/src/commands/migrate/v0_20.rs | 2 +- crates/core/src/helpers.rs | 1 - crates/core/src/tool.rs | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/cli/src/commands/migrate/v0_20.rs b/crates/cli/src/commands/migrate/v0_20.rs index 0e3cab246..6f82acf9d 100644 --- a/crates/cli/src/commands/migrate/v0_20.rs +++ b/crates/cli/src/commands/migrate/v0_20.rs @@ -63,7 +63,7 @@ pub async fn migrate() -> SystemResult { #[cfg(not(windows))] fn update_shell() -> SystemResult { - use crate::shell::{self, format_env_var}; + use crate::shell::format_env_var; info!("Updating shell profile..."); diff --git a/crates/core/src/helpers.rs b/crates/core/src/helpers.rs index b7c1f7af5..af2c91f36 100644 --- a/crates/core/src/helpers.rs +++ b/crates/core/src/helpers.rs @@ -5,7 +5,6 @@ use once_cell::sync::Lazy; use regex::Regex; use serde::de::DeserializeOwned; use serde::Serialize; -use sha2::digest::typenum::Len; use sha2::{Digest, Sha256}; use starbase_archive::is_supported_archive_extension; use starbase_utils::dirs::home_dir; diff --git a/crates/core/src/tool.rs b/crates/core/src/tool.rs index 1c841a19a..88404dcd7 100644 --- a/crates/core/src/tool.rs +++ b/crates/core/src/tool.rs @@ -1,14 +1,14 @@ use crate::error::ProtoError; +use crate::events::*; use crate::helpers::{ extract_filename_from_url, hash_file_contents, is_archive_file, is_cache_enabled, is_offline, - ENV_VAR, + remove_bin_file, ENV_VAR, }; use crate::host_funcs::{create_host_functions, HostData}; use crate::proto::ProtoEnvironment; use crate::shimmer::{get_shim_file_names, ShimContext, SHIM_VERSION}; use crate::tool_manifest::ToolManifest; use crate::version_resolver::VersionResolver; -use crate::{events::*, remove_bin_file}; use extism::{manifest::Wasm, Manifest as PluginManifest}; use miette::IntoDiagnostic; use proto_pdk_api::*;