1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-25 19:21:08 +00:00

chore: Import shared types from super (#492)

Changes imports statements to make imports more uniform.
This commit is contained in:
Zhenhui Xie 2019-10-06 05:13:03 +08:00 committed by Kevin Song
parent 7657af0680
commit 044e10de1b
7 changed files with 7 additions and 12 deletions

View File

@ -1,8 +1,7 @@
use std::env;
use super::{Context, Module};
use super::{Context, Module, RootModuleConfig};
use crate::config::RootModuleConfig;
use crate::configs::aws::AwsConfig;
pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {

View File

@ -1,5 +1,4 @@
use super::{Context, Module};
use crate::config::RootModuleConfig;
use super::{Context, Module, RootModuleConfig};
use crate::configs::battery::BatteryConfig;
/// Creates a module for the battery percentage and charging state

View File

@ -1,6 +1,5 @@
use super::{Context, Module};
use super::{Context, Module, RootModuleConfig};
use crate::config::RootModuleConfig;
use crate::configs::character::CharacterConfig;
/// Creates a module for the prompt character

View File

@ -5,8 +5,7 @@ use std::path::{Path, PathBuf};
use std::process::{Command, Stdio};
use std::str;
use super::{Context, Module};
use crate::config::RootModuleConfig;
use super::{Context, Module, RootModuleConfig};
use crate::configs::dotnet::DotnetConfig;
type JValue = serde_json::Value;

View File

@ -4,9 +4,8 @@ use yaml_rust::YamlLoader;
use std::env;
use std::path;
use super::{Context, Module};
use super::{Context, Module, RootModuleConfig};
use crate::config::RootModuleConfig;
use crate::configs::kubernetes::KubernetesConfig;
use crate::utils;

View File

@ -28,6 +28,7 @@ mod username;
#[cfg(feature = "battery")]
mod battery;
use crate::config::RootModuleConfig;
use crate::context::Context;
use crate::module::Module;

View File

@ -3,9 +3,8 @@ use std::path::Path;
use std::process::{Command, Output};
use std::{env, fs};
use super::{Context, Module};
use super::{Context, Module, RootModuleConfig};
use crate::config::RootModuleConfig;
use crate::configs::rust::RustConfig;
/// Creates a module with the current Rust version