From 6c41d7722b66de8fb96198dade1e79dc303b6f74 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sun, 26 Jan 2020 10:53:26 -0500 Subject: [PATCH] @at-rule has a hyphen --- src/atrule.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/atrule.rs b/src/atrule.rs index 4219991..a0703a2 100644 --- a/src/atrule.rs +++ b/src/atrule.rs @@ -170,7 +170,7 @@ impl TryFrom<&str> for AtRuleKind { "function" => Ok(Self::Function), "return" => Ok(Self::Return), "extend" => Ok(Self::Extend), - "atroot" => Ok(Self::AtRoot), + "at-root" => Ok(Self::AtRoot), "error" => Ok(Self::Error), "warn" => Ok(Self::Warn), "debug" => Ok(Self::Debug), @@ -212,7 +212,7 @@ impl Display for AtRuleKind { Self::Function => write!(f, "@function"), Self::Return => write!(f, "@return"), Self::Extend => write!(f, "@extend"), - Self::AtRoot => write!(f, "@atroot"), + Self::AtRoot => write!(f, "@at-root"), Self::Error => write!(f, "@error"), Self::Warn => write!(f, "@warn"), Self::Debug => write!(f, "@debug"),