mirror of
https://github.com/mbilker/kbinxml-rs.git
synced 2026-09-08 18:45:18 -05:00
de: add comment regarding the for loop
This commit is contained in:
@@ -90,6 +90,7 @@ impl<'de, 'a> MapAccess<'de> for Struct<'a, 'de> {
|
||||
debug!("--> <Struct as MapAccess>::next_value_seed()");
|
||||
let value = seed.deserialize(&mut *self.de)?;
|
||||
|
||||
// Cannot use `next_value_seed` recursively here as it would restart this for loop
|
||||
for _ in 0..self.values_to_consume {
|
||||
warn!("Struct::next_value_seed() => ignoring Attribute node value");
|
||||
let seed = PhantomData;
|
||||
|
||||
Reference in New Issue
Block a user