Add search iterator #1
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "ggriffiniii/photosync:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -100,0 +91,4 @@if let Some(v) = self.items.next() {return Some(Ok(v));}if self.finished {I'm surprised there isn't a way to implement this using
self.req.page_token.is_none(), why keep the extra state infinished? You have to structure it a little different to deal with the first time throughnext(), but it should be doable, rgiht?I couldn't think of a way to structure it differently. You need some state machine to differentiate between the first iteration and last since page token will be none in both cases. It seemed like the simplest additional state was just the bool but I would be happy to hear something better.
Ok, I'll merge this and then play around with it to see if there's any different way to write it. Note, I pushed something and now it won't merge cleanly. Can you pull and merge then repush this? I'm not sure exactly what steps are required.
done