Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. // Every container key is smaller than the target_key. In this case we 'wrap around' the
  2. // table and select the first element.
  3. if (closest_key == std::u32::MAX) {
  4. let result = self.containers.get_first();
  5. match result {
  6. None => {
  7. return Err("Did not find first entry.");
  8. }
  9. Some((_, entry)) => {
  10. let container_id = &entry.id;
  11. return Ok(container_id);
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement