fix: repeating non-parent selectors

This commit is contained in:
yiffyrusdev 2024-12-14 10:21:41 +05:00 • committed by spushk
commit 866b2a892c
Signed by: spushk
GPG key ID: 7797B761E105E8AA

View file

@ -112,7 +112,8 @@ pub fn styly_macro_impl(input: TokenStream, source_path: Option<PathBuf>) -> Tok
let scope_members = scope
.hashed_selectors
.iter()
.unique()
// not pretty sure about the best way to do this
.unique_by(|hs| hs.sel.as_arbitrary().ident.clone())
.filter_map(|hs| {
hs.html_ident.clone().map(|html| {
let name = match hs.sel {