1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-06-10 12:22:21 +00:00

fix: Fix latest clippy suggestions (#1136)

Have removed some imports that Clippy says are not needed anymore.
This commit is contained in:
Thomas O'Donnell 2020-04-24 12:37:13 +02:00 committed by GitHub
parent b0bfed2a21
commit 060689fa88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 0 additions and 20 deletions

View File

@ -204,7 +204,6 @@ fn get_starship_config() -> String {
#[cfg(test)]
mod tests {
use super::*;
use os_info;
use std::env;
#[test]

View File

@ -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() {

View File

@ -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<()> {

View File

@ -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() {

View File

@ -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<()> {

View File

@ -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<()> {

View File

@ -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<()> {

View File

@ -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<()> {

View File

@ -1,4 +1,3 @@
use dirs;
use yaml_rust::YamlLoader;
use std::env;

View File

@ -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<()> {

View File

@ -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;

View File

@ -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() {

View File

@ -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<()> {

View File

@ -2,7 +2,6 @@ use std::fs::File;
use std::io::{self, Write};
use ansi_term::Color;
use tempfile;
use crate::common::{self, TestCommand};

View File

@ -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};

View File

@ -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<()> {

View File

@ -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};

View File

@ -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};

View File

@ -2,7 +2,6 @@ use std::fs::File;
use std::io;
use ansi_term::Color;
use tempfile;
use crate::common::{self, TestCommand};

View File

@ -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;