Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
merelymyself committed Sep 21, 2022
1 parent 5a8e37d commit 701e81b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/color/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub struct Theme {
pub file_type: FileType,
}

#[derive(Debug, Deserialize, PartialEq)]
#[derive(Debug, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "kebab-case")]
#[serde(deny_unknown_fields)]
#[serde(default)]
Expand All @@ -128,7 +128,7 @@ pub struct Permission {
pub context: Color,
}

#[derive(Debug, Deserialize, PartialEq)]
#[derive(Debug, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "kebab-case")]
#[serde(deny_unknown_fields)]
#[serde(default)]
Expand All @@ -148,7 +148,7 @@ pub struct FileType {
pub special: Color,
}

#[derive(Debug, Deserialize, PartialEq)]
#[derive(Debug, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "kebab-case")]
#[serde(deny_unknown_fields)]
#[serde(default)]
Expand All @@ -163,7 +163,7 @@ pub struct File {
pub no_exec_no_uid: Color,
}

#[derive(Debug, Deserialize, PartialEq)]
#[derive(Debug, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "kebab-case")]
#[serde(deny_unknown_fields)]
#[serde(default)]
Expand All @@ -174,7 +174,7 @@ pub struct Dir {
pub no_uid: Color,
}

#[derive(Debug, Deserialize, PartialEq)]
#[derive(Debug, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "kebab-case")]
#[serde(deny_unknown_fields)]
#[serde(default)]
Expand All @@ -187,7 +187,7 @@ pub struct Symlink {
pub missing_target: Color,
}

#[derive(Debug, Deserialize, PartialEq)]
#[derive(Debug, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "kebab-case")]
#[serde(deny_unknown_fields)]
#[serde(default)]
Expand All @@ -200,7 +200,7 @@ pub struct Date {
pub older: Color,
}

#[derive(Debug, Deserialize, PartialEq)]
#[derive(Debug, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "kebab-case")]
#[serde(deny_unknown_fields)]
#[serde(default)]
Expand All @@ -215,7 +215,7 @@ pub struct Size {
pub large: Color,
}

#[derive(Debug, Deserialize, PartialEq)]
#[derive(Debug, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "kebab-case")]
#[serde(deny_unknown_fields)]
#[serde(default)]
Expand All @@ -226,7 +226,7 @@ pub struct INode {
pub invalid: Color,
}

#[derive(Debug, Deserialize, PartialEq)]
#[derive(Debug, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "kebab-case")]
#[serde(deny_unknown_fields)]
#[serde(default)]
Expand Down
2 changes: 1 addition & 1 deletion src/meta/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl Name {
.chars()
.all(|c| c >= 0x20 as char && c != 0x7f as char)
{
string.to_string()
string
} else {
let mut chars = String::new();
for c in string.chars() {
Expand Down

0 comments on commit 701e81b

Please sign in to comment.