diff --git a/src/args.rs b/src/args.rs index 5535f3b..a6824da 100644 --- a/src/args.rs +++ b/src/args.rs @@ -29,10 +29,6 @@ impl CallArgs { CallArgs(BTreeMap::new()) } - pub fn is_empty(&self) -> bool { - self.0.is_empty() - } - pub fn get(&self, val: &str) -> Option<&Value> { self.0.get(val) } diff --git a/src/atrule.rs b/src/atrule.rs index fd8a17f..a47949b 100644 --- a/src/atrule.rs +++ b/src/atrule.rs @@ -105,6 +105,7 @@ impl AtRule { } } +#[allow(dead_code, unused_variables)] fn eat_media_query>(toks: &mut Peekable) {} #[derive(Clone, Debug, Eq, PartialEq)] diff --git a/src/css.rs b/src/css.rs index 7077673..c17f036 100644 --- a/src/css.rs +++ b/src/css.rs @@ -16,6 +16,7 @@ enum Toplevel { enum BlockEntry { Style(Style), MultilineComment(String), + #[allow(dead_code)] AtRule(AtRule), } diff --git a/src/lexer.rs b/src/lexer.rs index 3c392fe..cb8e02d 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -305,7 +305,7 @@ impl<'a> Lexer<'a> { self.devour_whitespace(); let mut value = String::with_capacity(99); - let mut case_sensitive = CaseKind::Sensitive; + let case_sensitive = CaseKind::Sensitive; while let Some(c) = self.buf.peek() { if c == &']' || c.is_whitespace() { diff --git a/src/lib.rs b/src/lib.rs index a8b89a0..d5a9aa5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -568,7 +568,6 @@ pub(crate) fn parse_style_value>( let mut n = 0; devour_whitespace(toks); while let Some(tok) = toks.peek() { - dbg!(&tok.pos); match tok.kind { TokenKind::MultilineComment(_) => { toks.next();