Cleanups to make compiler happy
This commit is contained in:
parent
8e42d73c1e
commit
3b3de2d83b
@ -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)
|
||||
}
|
||||
|
@ -105,6 +105,7 @@ impl AtRule {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code, unused_variables)]
|
||||
fn eat_media_query<I: Iterator<Item = Token>>(toks: &mut Peekable<I>) {}
|
||||
|
||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
|
@ -16,6 +16,7 @@ enum Toplevel {
|
||||
enum BlockEntry {
|
||||
Style(Style),
|
||||
MultilineComment(String),
|
||||
#[allow(dead_code)]
|
||||
AtRule(AtRule),
|
||||
}
|
||||
|
||||
|
@ -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() {
|
||||
|
@ -568,7 +568,6 @@ pub(crate) fn parse_style_value<I: Iterator<Item = Token>>(
|
||||
let mut n = 0;
|
||||
devour_whitespace(toks);
|
||||
while let Some(tok) = toks.peek() {
|
||||
dbg!(&tok.pos);
|
||||
match tok.kind {
|
||||
TokenKind::MultilineComment(_) => {
|
||||
toks.next();
|
||||
|
Loading…
x
Reference in New Issue
Block a user