chore: fix new clippy lints (#4136)

This commit is contained in:
David Knaack
2022-06-30 22:18:29 +02:00
committed by GitHub
parent 7594f01d3d
commit eb67534ac9
4 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -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(),
+2 -2
View File
@@ -573,7 +573,7 @@ fn get_remote_repository_info(repository: &Repository) -> Option<Remote> {
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,
+1 -1
View File
@@ -32,7 +32,7 @@ type VariableMapType<'a> =
type StyleVariableMapType<'a> =
BTreeMap<String, Option<Result<Cow<'a, str>, StringFormatterError>>>;
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum StringFormatterError {
Custom(String),
Parse(PestError<Rule>),
-1
View File
@@ -58,7 +58,6 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
fn parse_v_version(v_version: &str) -> Option<String> {
let version = v_version
.trim()
// split into ["V", "0.2", "30c0659"]
.split_whitespace()
// return "0.2"