fix merging static attributes

This commit is contained in:
Evan Almloff 2023-09-19 10:20:42 -05:00
parent 9be7773ba7
commit 561830d814

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(_)))
}
}