diff --git a/src/configs/starship_root.rs b/src/configs/starship_root.rs index 9f855957..e8b2ed74 100644 --- a/src/configs/starship_root.rs +++ b/src/configs/starship_root.rs @@ -99,7 +99,7 @@ pub const PROMPT_ORDER: &[&str] = &[ ]; // On changes please also update `Default` for the `FullConfig` struct in `mod.rs` -impl<'a> Default for StarshipRootConfig { +impl Default for StarshipRootConfig { fn default() -> Self { Self { schema: "https://starship.rs/config-schema.json".to_string(), diff --git a/src/context.rs b/src/context.rs index 1a8a1664..743c242f 100644 --- a/src/context.rs +++ b/src/context.rs @@ -573,7 +573,7 @@ fn get_remote_repository_info(repository: &Repository) -> Option { None } -#[derive(Debug, Clone, Copy, PartialEq)] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum Shell { Bash, Fish, @@ -589,7 +589,7 @@ pub enum Shell { } /// Which kind of prompt target to print (main prompt, rprompt, ...) -#[derive(Debug, Clone, Copy, PartialEq)] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum Target { Main, Right, diff --git a/src/formatter/string_formatter.rs b/src/formatter/string_formatter.rs index 5350ff4d..3755edc7 100644 --- a/src/formatter/string_formatter.rs +++ b/src/formatter/string_formatter.rs @@ -32,7 +32,7 @@ type VariableMapType<'a> = type StyleVariableMapType<'a> = BTreeMap, StringFormatterError>>>; -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub enum StringFormatterError { Custom(String), Parse(PestError), diff --git a/src/modules/vlang.rs b/src/modules/vlang.rs index 6ca6dd5f..85ccb40f 100644 --- a/src/modules/vlang.rs +++ b/src/modules/vlang.rs @@ -58,7 +58,6 @@ pub fn module<'a>(context: &'a Context) -> Option> { fn parse_v_version(v_version: &str) -> Option { let version = v_version - .trim() // split into ["V", "0.2", "30c0659"] .split_whitespace() // return "0.2"