Cleanups to make compiler happy
This commit is contained in:
parent
8e42d73c1e
commit
3b3de2d83b
@ -29,10 +29,6 @@ impl CallArgs {
|
|||||||
CallArgs(BTreeMap::new())
|
CallArgs(BTreeMap::new())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_empty(&self) -> bool {
|
|
||||||
self.0.is_empty()
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn get(&self, val: &str) -> Option<&Value> {
|
pub fn get(&self, val: &str) -> Option<&Value> {
|
||||||
self.0.get(val)
|
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>) {}
|
fn eat_media_query<I: Iterator<Item = Token>>(toks: &mut Peekable<I>) {}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||||
|
@ -16,6 +16,7 @@ enum Toplevel {
|
|||||||
enum BlockEntry {
|
enum BlockEntry {
|
||||||
Style(Style),
|
Style(Style),
|
||||||
MultilineComment(String),
|
MultilineComment(String),
|
||||||
|
#[allow(dead_code)]
|
||||||
AtRule(AtRule),
|
AtRule(AtRule),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -305,7 +305,7 @@ impl<'a> Lexer<'a> {
|
|||||||
self.devour_whitespace();
|
self.devour_whitespace();
|
||||||
|
|
||||||
let mut value = String::with_capacity(99);
|
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() {
|
while let Some(c) = self.buf.peek() {
|
||||||
if c == &']' || c.is_whitespace() {
|
if c == &']' || c.is_whitespace() {
|
||||||
|
@ -568,7 +568,6 @@ pub(crate) fn parse_style_value<I: Iterator<Item = Token>>(
|
|||||||
let mut n = 0;
|
let mut n = 0;
|
||||||
devour_whitespace(toks);
|
devour_whitespace(toks);
|
||||||
while let Some(tok) = toks.peek() {
|
while let Some(tok) = toks.peek() {
|
||||||
dbg!(&tok.pos);
|
|
||||||
match tok.kind {
|
match tok.kind {
|
||||||
TokenKind::MultilineComment(_) => {
|
TokenKind::MultilineComment(_) => {
|
||||||
toks.next();
|
toks.next();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user