fix: repeating non-parent selectors

This commit is contained in:
yiffyrusdev 2024-12-14 10:21:41 +05:00
commit ad34a0e78a
No known key found for this signature in database
GPG key ID: FB83DFEAFB3F4709

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 {