From 2efab1cebe65cbabad5b6bf4e71bdc76c0d5c190 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Fri, 3 Apr 2020 13:33:55 -0400 Subject: [PATCH] clippy --- src/selector/mod.rs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/selector/mod.rs b/src/selector/mod.rs index f436465..97b341c 100644 --- a/src/selector/mod.rs +++ b/src/selector/mod.rs @@ -33,7 +33,6 @@ struct SelectorPart { impl Display for SelectorPart { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - dbg!(&self); let mut iter = self.inner.iter().peekable(); devour_whitespace(&mut iter); while let Some(s) = iter.next() { @@ -205,11 +204,10 @@ impl Selector { while let Some(c) = string.pop() { if c == ' ' || c == ',' { continue; - } else { - string.push(c); - string.push(','); - break; } + string.push(c); + string.push(','); + break; } } '/' => { @@ -233,11 +231,10 @@ impl Selector { while let Some(c) = string.pop() { if c == ' ' || c == ',' || c == '\t' { continue; - } else { - string.push(c); - string.push(','); - break; } + string.push(c); + string.push(','); + break; } let mut inner = Vec::new();