mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-28 07:46:28 +00:00
fix: Fix latest clippy suggestions (#1136)
Have removed some imports that Clippy says are not needed anymore.
This commit is contained in:
parent
b0bfed2a21
commit
060689fa88
@ -204,7 +204,6 @@ fn get_starship_config() -> String {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use os_info;
|
||||
use std::env;
|
||||
|
||||
#[test]
|
||||
|
@ -423,7 +423,6 @@ fn parse_color_string(color_string: &str) -> Option<ansi_term::Color> {
|
||||
mod tests {
|
||||
use super::*;
|
||||
use starship_module_config_derive::ModuleConfig;
|
||||
use toml;
|
||||
|
||||
#[test]
|
||||
fn test_load_config() {
|
||||
|
@ -51,7 +51,6 @@ mod tests {
|
||||
use ansi_term::Color;
|
||||
use std::fs::File;
|
||||
use std::io;
|
||||
use tempfile;
|
||||
|
||||
#[test]
|
||||
fn folder_without_crystal_files() -> io::Result<()> {
|
||||
|
@ -63,7 +63,6 @@ mod tests {
|
||||
use ansi_term::Color;
|
||||
use std::fs::File;
|
||||
use std::io;
|
||||
use tempfile;
|
||||
|
||||
#[test]
|
||||
fn test_parse_elixir_version() {
|
||||
|
@ -42,7 +42,6 @@ mod tests {
|
||||
use ansi_term::Color;
|
||||
use std::fs::{self, File};
|
||||
use std::io;
|
||||
use tempfile;
|
||||
|
||||
#[test]
|
||||
fn folder_without_elm() -> io::Result<()> {
|
||||
|
@ -70,7 +70,6 @@ mod tests {
|
||||
use ansi_term::Color;
|
||||
use std::fs::{self, File};
|
||||
use std::io;
|
||||
use tempfile;
|
||||
|
||||
#[test]
|
||||
fn folder_without_go_files() -> io::Result<()> {
|
||||
|
@ -43,7 +43,6 @@ mod tests {
|
||||
use ansi_term::Color;
|
||||
use std::fs::File;
|
||||
use std::io;
|
||||
use tempfile;
|
||||
|
||||
#[test]
|
||||
fn folder_without_stack_yaml() -> io::Result<()> {
|
||||
|
@ -55,7 +55,6 @@ mod tests {
|
||||
use ansi_term::Color;
|
||||
use std::fs::File;
|
||||
use std::io;
|
||||
use tempfile;
|
||||
|
||||
#[test]
|
||||
fn folder_without_julia_file() -> io::Result<()> {
|
||||
|
@ -1,4 +1,3 @@
|
||||
use dirs;
|
||||
use yaml_rust::YamlLoader;
|
||||
|
||||
use std::env;
|
||||
|
@ -41,7 +41,6 @@ mod tests {
|
||||
use ansi_term::Color;
|
||||
use std::fs::{self, File};
|
||||
use std::io;
|
||||
use tempfile;
|
||||
|
||||
#[test]
|
||||
fn folder_without_node_files() -> io::Result<()> {
|
||||
|
@ -5,7 +5,6 @@ use crate::utils;
|
||||
|
||||
use regex::Regex;
|
||||
use serde_json as json;
|
||||
use toml;
|
||||
|
||||
use super::{RootModuleConfig, SegmentConfig};
|
||||
use crate::configs::package::PackageConfig;
|
||||
|
@ -58,7 +58,6 @@ mod tests {
|
||||
use ansi_term::Color;
|
||||
use std::fs::File;
|
||||
use std::io;
|
||||
use tempfile;
|
||||
|
||||
#[test]
|
||||
fn test_format_php_version() {
|
||||
|
@ -56,7 +56,6 @@ mod tests {
|
||||
use ansi_term::Color;
|
||||
use std::fs::File;
|
||||
use std::io;
|
||||
use tempfile;
|
||||
|
||||
#[test]
|
||||
fn folder_without_ruby_files() -> io::Result<()> {
|
||||
|
@ -2,7 +2,6 @@ use std::fs::File;
|
||||
use std::io::{self, Write};
|
||||
|
||||
use ansi_term::Color;
|
||||
use tempfile;
|
||||
|
||||
use crate::common::{self, TestCommand};
|
||||
|
||||
|
@ -2,7 +2,6 @@ use ansi_term::Color;
|
||||
use remove_dir_all::remove_dir_all;
|
||||
use std::io;
|
||||
use std::process::Command;
|
||||
use tempfile;
|
||||
|
||||
use crate::common::{self, TestCommand};
|
||||
|
||||
|
@ -3,7 +3,6 @@ use std::ffi::OsStr;
|
||||
use std::fs::OpenOptions;
|
||||
use std::io::{self, Error, ErrorKind, Write};
|
||||
use std::process::{Command, Stdio};
|
||||
use tempfile;
|
||||
|
||||
#[test]
|
||||
fn show_nothing_on_empty_dir() -> io::Result<()> {
|
||||
|
@ -4,7 +4,6 @@ use std::fs::{self, File};
|
||||
use std::io;
|
||||
use std::path::PathBuf;
|
||||
use std::process::Command;
|
||||
use tempfile;
|
||||
|
||||
use crate::common::{self, TestCommand};
|
||||
|
||||
|
@ -3,7 +3,6 @@ use std::fs;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::process::Command;
|
||||
use std::{env, io};
|
||||
use tempfile;
|
||||
|
||||
use crate::common::{self, TestCommand};
|
||||
|
||||
|
@ -2,7 +2,6 @@ use std::fs::File;
|
||||
use std::io;
|
||||
|
||||
use ansi_term::Color;
|
||||
use tempfile;
|
||||
|
||||
use crate::common::{self, TestCommand};
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
use ansi_term::Color;
|
||||
use std::fs::{self, File};
|
||||
use std::io::{self, Write};
|
||||
use tempfile;
|
||||
|
||||
use crate::common;
|
||||
use crate::common::TestCommand;
|
||||
|
Loading…
Reference in New Issue
Block a user