We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Interpolate
1 parent 287bb90 commit a48584dCopy full SHA for a48584d
site/src/interpolate.rs
@@ -81,7 +81,12 @@ where
81
fn next(&mut self) -> Option<Self::Item> {
82
if let Some(mut item) = self.consumed.pop() {
83
item.set_value(self.last_seen.unwrap());
84
- return Some((item, Interpolated::Yes));
+ let interpolation = if self.consumed.is_empty() {
85
+ Interpolated::No
86
+ } else {
87
+ Interpolated::Yes
88
+ };
89
+ return Some((item, interpolation));
90
}
91
92
let mut item = self.iterator.next()?;
0 commit comments