mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-24 21:57:41 +00:00
chore: Import shared types from super (#492)
Changes imports statements to make imports more uniform.
This commit is contained in:
parent
7657af0680
commit
044e10de1b
@ -1,8 +1,7 @@
|
|||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
use super::{Context, Module};
|
use super::{Context, Module, RootModuleConfig};
|
||||||
|
|
||||||
use crate::config::RootModuleConfig;
|
|
||||||
use crate::configs::aws::AwsConfig;
|
use crate::configs::aws::AwsConfig;
|
||||||
|
|
||||||
pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
|
pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
use super::{Context, Module};
|
use super::{Context, Module, RootModuleConfig};
|
||||||
use crate::config::RootModuleConfig;
|
|
||||||
use crate::configs::battery::BatteryConfig;
|
use crate::configs::battery::BatteryConfig;
|
||||||
|
|
||||||
/// Creates a module for the battery percentage and charging state
|
/// Creates a module for the battery percentage and charging state
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
use super::{Context, Module};
|
use super::{Context, Module, RootModuleConfig};
|
||||||
|
|
||||||
use crate::config::RootModuleConfig;
|
|
||||||
use crate::configs::character::CharacterConfig;
|
use crate::configs::character::CharacterConfig;
|
||||||
|
|
||||||
/// Creates a module for the prompt character
|
/// Creates a module for the prompt character
|
||||||
|
@ -5,8 +5,7 @@ use std::path::{Path, PathBuf};
|
|||||||
use std::process::{Command, Stdio};
|
use std::process::{Command, Stdio};
|
||||||
use std::str;
|
use std::str;
|
||||||
|
|
||||||
use super::{Context, Module};
|
use super::{Context, Module, RootModuleConfig};
|
||||||
use crate::config::RootModuleConfig;
|
|
||||||
use crate::configs::dotnet::DotnetConfig;
|
use crate::configs::dotnet::DotnetConfig;
|
||||||
|
|
||||||
type JValue = serde_json::Value;
|
type JValue = serde_json::Value;
|
||||||
|
@ -4,9 +4,8 @@ use yaml_rust::YamlLoader;
|
|||||||
use std::env;
|
use std::env;
|
||||||
use std::path;
|
use std::path;
|
||||||
|
|
||||||
use super::{Context, Module};
|
use super::{Context, Module, RootModuleConfig};
|
||||||
|
|
||||||
use crate::config::RootModuleConfig;
|
|
||||||
use crate::configs::kubernetes::KubernetesConfig;
|
use crate::configs::kubernetes::KubernetesConfig;
|
||||||
use crate::utils;
|
use crate::utils;
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ mod username;
|
|||||||
#[cfg(feature = "battery")]
|
#[cfg(feature = "battery")]
|
||||||
mod battery;
|
mod battery;
|
||||||
|
|
||||||
|
use crate::config::RootModuleConfig;
|
||||||
use crate::context::Context;
|
use crate::context::Context;
|
||||||
use crate::module::Module;
|
use crate::module::Module;
|
||||||
|
|
||||||
|
@ -3,9 +3,8 @@ use std::path::Path;
|
|||||||
use std::process::{Command, Output};
|
use std::process::{Command, Output};
|
||||||
use std::{env, fs};
|
use std::{env, fs};
|
||||||
|
|
||||||
use super::{Context, Module};
|
use super::{Context, Module, RootModuleConfig};
|
||||||
|
|
||||||
use crate::config::RootModuleConfig;
|
|
||||||
use crate::configs::rust::RustConfig;
|
use crate::configs::rust::RustConfig;
|
||||||
|
|
||||||
/// Creates a module with the current Rust version
|
/// Creates a module with the current Rust version
|
||||||
|
Loading…
Reference in New Issue
Block a user