1
Fork 0

Remove duplicate warnings

This commit is contained in:
Guillaume Gomez 2022-09-14 20:23:19 +02:00
parent e7d8ad62db
commit a528f68e79

View file

@ -133,7 +133,6 @@ fn parse_rules(
}
match rules.entry(rule) {
Entry::Occupied(mut o) => {
eprintln!("Duplicated rule `{}` in CSS selector `{selector}`", o.key());
*o.get_mut() = value;
}
Entry::Vacant(v) => {
@ -147,7 +146,6 @@ fn parse_rules(
match paths.entry(selector) {
Entry::Occupied(mut o) => {
eprintln!("Duplicated CSS selector: `{}`", o.key());
let v = o.get_mut();
for (key, value) in rules.into_iter() {
v.rules.insert(key, value);