Skip to content

Commit

Permalink
fix: Fix latest clippy suggestions (starship#1136)
Browse files Browse the repository at this point in the history
Have removed some imports that Clippy says are not needed anymore.
  • Loading branch information
andytom authored and dagbrown committed Jul 15, 2021
1 parent 0a969ec commit d7b064b
Show file tree
Hide file tree
Showing 20 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion src/bug_report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ fn get_starship_config() -> String {
#[cfg(test)]
mod tests {
use super::*;
use os_info;
use std::env;

#[test]
Expand Down
1 change: 0 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
1 change: 0 additions & 1 deletion src/modules/crystal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down
1 change: 0 additions & 1 deletion src/modules/elixir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
1 change: 0 additions & 1 deletion src/modules/elm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down
1 change: 0 additions & 1 deletion src/modules/golang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down
1 change: 0 additions & 1 deletion src/modules/haskell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down
1 change: 0 additions & 1 deletion src/modules/julia.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down
1 change: 0 additions & 1 deletion src/modules/kubernetes.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use dirs;
use yaml_rust::YamlLoader;

use std::env;
Expand Down
1 change: 0 additions & 1 deletion src/modules/nodejs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down
1 change: 0 additions & 1 deletion src/modules/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/modules/php.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
1 change: 0 additions & 1 deletion src/modules/ruby.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite/aws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::fs::File;
use std::io::{self, Write};

use ansi_term::Color;
use tempfile;

use crate::common::{self, TestCommand};

Expand Down
1 change: 0 additions & 1 deletion tests/testsuite/git_branch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down
1 change: 0 additions & 1 deletion tests/testsuite/git_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite/git_status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down
1 change: 0 additions & 1 deletion tests/testsuite/hg_branch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down
1 change: 0 additions & 1 deletion tests/testsuite/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::fs::File;
use std::io;

use ansi_term::Color;
use tempfile;

use crate::common::{self, TestCommand};

Expand Down
1 change: 0 additions & 1 deletion tests/testsuite/terraform.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit d7b064b

Please sign in to comment.