1
0
Эх сурвалжийг харах

fix merging static attributes

Evan Almloff 1 жил өмнө
parent
commit
561830d814

+ 3 - 1
packages/rsx/src/ifmt.rs

@@ -47,7 +47,9 @@ impl IfmtInput {
     }
 
     pub fn is_static(&self) -> bool {
-        matches!(self.segments.as_slice(), &[Segment::Literal(_)] | &[])
+        self.segments
+            .iter()
+            .all(|seg| matches!(seg, Segment::Literal(_)))
     }
 }