master
Avril 4 years ago
parent 0602a12362
commit 59790e584b
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -4,7 +4,7 @@ description = "Small byte-sized generic key-value map type"
keywords = ["map", "table", "small", "key", "value"]
repository = "https://github.com/notflan/smallmap"
homepage= "https://git.flanchan.moe/flanchan/smallmap"
version = "1.1.4"
version = "1.1.5"
authors = ["Avril <flanchan@cumallover.me>"]
edition = "2018"
license = "MIT"

@ -114,23 +114,15 @@ where K: Collapse
{
type Item = &'a (K,V);
fn next(&mut self) -> Option<Self::Item> {
println!("Start loop");
loop {
if let Some(ref mut page) = self.0 {
if let Some(elem) = page.next() {
println!("!!!!! Get");
return Some(elem);
} else {
println!("NO ENTRY IN PAGE");
}
} else {
println!("NO PAGE");
}
}
if let Some(next_page) = self.1.next() {
println!("REPLACE");
self.0.replace(next_page.iter());
} else {
println!("NONE");
return None;
}
}

Loading…
Cancel
Save