diff --git a/src/modules/aws.rs b/src/modules/aws.rs index fb8fabfa..8e6fd50f 100644 --- a/src/modules/aws.rs +++ b/src/modules/aws.rs @@ -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> { diff --git a/src/modules/battery.rs b/src/modules/battery.rs index e6728029..2959a046 100644 --- a/src/modules/battery.rs +++ b/src/modules/battery.rs @@ -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 diff --git a/src/modules/character.rs b/src/modules/character.rs index 4925147c..45f0c710 100644 --- a/src/modules/character.rs +++ b/src/modules/character.rs @@ -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 diff --git a/src/modules/dotnet.rs b/src/modules/dotnet.rs index d63256e5..2c11a510 100644 --- a/src/modules/dotnet.rs +++ b/src/modules/dotnet.rs @@ -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; diff --git a/src/modules/kubernetes.rs b/src/modules/kubernetes.rs index c646455e..16336d37 100644 --- a/src/modules/kubernetes.rs +++ b/src/modules/kubernetes.rs @@ -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; diff --git a/src/modules/mod.rs b/src/modules/mod.rs index 9be790cf..29b8c3b2 100644 --- a/src/modules/mod.rs +++ b/src/modules/mod.rs @@ -28,6 +28,7 @@ mod username; #[cfg(feature = "battery")] mod battery; +use crate::config::RootModuleConfig; use crate::context::Context; use crate::module::Module; diff --git a/src/modules/rust.rs b/src/modules/rust.rs index 5120b610..b18692b8 100644 --- a/src/modules/rust.rs +++ b/src/modules/rust.rs @@ -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