style: Fix clippy warnings

Depends on D96634

Differential Revision: https://phabricator.services.mozilla.com/D96636
This commit is contained in:
Sylvestre Ledru 2020-11-17 12:02:22 +00:00 committed by Martin Robinson
parent 35b4641bf9
commit 3763d9a6cc
3 changed files with 5 additions and 5 deletions

View file

@ -368,7 +368,7 @@ pub fn to_css_identifier(mut camel_case: &str) -> String {
}
}
if !first {
result.push_str("-");
result.push('-');
}
first = false;
result.push_str(&segment.to_lowercase());