Fixed attributes

This commit is contained in:
2026-05-28 16:28:20 +02:00
parent 97b2cc4413
commit 9e1b9ad564
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -28,11 +28,11 @@ impl<'a> TryFrom<pest::iterators::Pair<'a, Rule>> for Attribute {
}
Some(next) => match next.as_rule() {
Rule::primary => {
Rule::literal => {
// #[path = literal]
Ok(Attribute::NameValue {
path,
value: inner.next().unwrap().try_into().get()?,
value: next.try_into().get()?,
})
}