Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unnecessary import #1997

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/test-support/src/matchers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::str;
use crate::process::ProcessBuilder;

use hamcrest2::core::{MatchResult, Matcher};
use serde_json::{self, Value};
use serde_json::Value;

#[derive(Clone)]
pub struct Execs {
Expand Down
2 changes: 1 addition & 1 deletion crates/volta-core/src/tool/node/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::layout::volta_home;
use crate::style::{progress_bar, tool_version};
use crate::tool::{self, download_tool_error, Node};
use crate::version::{parse_version, VersionSpec};
use archive::{self, Archive};
use archive::Archive;
use cfg_if::cfg_if;
use fs_utils::ensure_containing_dir_exists;
use log::debug;
Expand Down
6 changes: 3 additions & 3 deletions crates/volta-core/src/version/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ fn trim_version(s: &str) -> &str {
pub mod version_serde {
use node_semver::Version;
use serde::de::{Error, Visitor};
use serde::{self, Deserializer, Serializer};
use serde::{Deserializer, Serializer};
use std::fmt;

struct VersionVisitor;
Expand Down Expand Up @@ -152,7 +152,7 @@ pub mod version_serde {
pub mod option_version_serde {
use node_semver::Version;
use serde::de::Error;
use serde::{self, Deserialize, Deserializer, Serializer};
use serde::{Deserialize, Deserializer, Serializer};

pub fn serialize<S>(version: &Option<Version>, s: S) -> Result<S::Ok, S::Error>
where
Expand Down Expand Up @@ -183,7 +183,7 @@ pub mod option_version_serde {
pub mod hashmap_version_serde {
use super::version_serde;
use node_semver::Version;
use serde::{self, Deserialize, Deserializer};
use serde::{Deserialize, Deserializer};
use std::collections::HashMap;

#[derive(Deserialize)]
Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/support/sandbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ use std::time::{Duration, SystemTime};

use cfg_if::cfg_if;
use headers::{Expires, Header};
use mockito::{self, mock, Matcher};
use mockito::{mock, Matcher};
use node_semver::Version;
use test_support::{self, ok_or_panic, paths, paths::PathExt, process::ProcessBuilder};
use test_support::{ok_or_panic, paths, paths::PathExt, process::ProcessBuilder};
use volta_core::fs::{set_executable, symlink_file};
use volta_core::tool::{Node, Pnpm, Yarn};

Expand Down
2 changes: 1 addition & 1 deletion tests/smoke/support/temp_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::path::{Path, PathBuf};
use volta_core::fs::symlink_file;
use volta_core::tool::Node;

use test_support::{self, ok_or_panic, paths, paths::PathExt, process::ProcessBuilder};
use test_support::{ok_or_panic, paths, paths::PathExt, process::ProcessBuilder};

#[derive(PartialEq, Clone)]
pub struct FileBuilder {
Expand Down