Skip to content

Commit

Permalink
fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxVerevkin committed Nov 27, 2024
1 parent 0a3f676 commit eb01a96
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl<'de> de::Deserialize<'de> for Color {
{
struct ColorVisitor;

impl<'de> de::Visitor<'de> for ColorVisitor {
impl de::Visitor<'_> for ColorVisitor {
type Value = Color;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ impl<'de> de::Deserialize<'de> for Font {
{
struct FontVisitor;

impl<'de> de::Visitor<'de> for FontVisitor {
impl de::Visitor<'_> for FontVisitor {
type Value = Font;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion src/i3bar_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl<'de> Deserialize<'de> for MinWidth {
{
struct MinWidthVisitor;

impl<'de> de::Visitor<'de> for MinWidthVisitor {
impl de::Visitor<'_> for MinWidthVisitor {
type Value = MinWidth;

fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub fn de_first_json<'a, T: Deserialize<'a>>(
) -> Result<(Option<T>, &'a [u8]), JsonError> {
while s
.first()
.map_or(false, |&x| x == b' ' || x == b',' || x == b'\n')
.is_some_and(|&x| x == b' ' || x == b',' || x == b'\n')
{
s = &s[1..];
}
Expand Down

0 comments on commit eb01a96

Please sign in to comment.