fix!: bring the scope autocompletion in by changing style input syntax

BREAKING CHANGE: `styly`, `sassy` macros syntax change. Now requires `{"$code"}`.
This commit is contained in:
Yiffy Dev 2024-11-01 09:42:37 +05:00
commit e1bd0b8c27
No known key found for this signature in database
GPG key ID: FB83DFEAFB3F4709

View file

@ -215,7 +215,7 @@ impl HashedSelector {
///
/// Not every hashed selector is presentable for HTML-ish use: like `div`, in that case
/// returns [None]
pub fn make_hashed_html(value: &ScopedSelector, hash: &ScopeHash) -> Option<String> {
pub fn make_hashed_html(value: &ScopedSelector, _hash: &ScopeHash) -> Option<String> {
match value {
// Class scoping is done with class composition
ScopedSelector::Class(a) => {
@ -223,7 +223,7 @@ impl HashedSelector {
if #[cfg(feature = "lepty-scoping")] {
Some(a.ident.to_string())
} else {
Some(format!("{} {}", hash.as_str(), a.ident))
Some(format!("{} {}", _hash.as_str(), a.ident))
}
}
}
@ -234,7 +234,7 @@ impl HashedSelector {
if #[cfg(feature = "lepty-scoping")] {
Some(a.ident.to_string())
} else {
Some(format!("{}-{}", hash.as_str(), a.ident))
Some(format!("{}-{}", _hash.as_str(), a.ident))
}
}
}