fix merging static attributes
This commit is contained in:
1 parent
9be7773ba7
commit
561830d814
1 file changed
+3
-1
@@ -47,7 +47,9 @@ impl IfmtInput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_static(&self) -> bool {
|
pub fn is_static(&self) -> bool {
|
||||||
matches!(self.segments.as_slice(), &[Segment::Literal(_)] | &[])
|
self.segments
|
||||||
|
.iter()
|
||||||
|
.all(|seg| matches!(seg, Segment::Literal(_)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user