diff --git a/packages/rsx/src/ifmt.rs b/packages/rsx/src/ifmt.rs index 981b111ce..fa764bf2e 100644 --- a/packages/rsx/src/ifmt.rs +++ b/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(_))) } }