fix merging static attributes

This commit is contained in:
Evan Almloff committed 2023-09-19 10:20:42 -05:00
1 parent 9be7773ba7
commit 561830d814
1 file changed
+3 -1
+3 -1
View File
@@ -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(_)))
}
}