Last active
August 29, 2015 14:23
-
-
Save leonardinius/5c4d7d0eecf40a33f910 to your computer and use it in GitHub Desktop.
snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEBUG:git_wayback_machine::history: make_entry: "921ebcd|Leonids Maslovs|7 days ago|Initial commit" -> ["921ebcd", "Leonids Maslovs", "7 days ago", "Initial commit"] | |
DEBUG:git_wayback_machine::history: Inspect 1: Entry: "921ebcd" "7 days ago" "Leonids Maslovs": "Initial commit" | |
DEBUG:git_wayback_machine::history: Inspect 2: Entry: "\u{233}\u{2}\u{682}\u{7f}\u{0}" "\n\u{0}\u{0}\u{0}\u{0}\u{0}\u{0}\u{0}\u{3cc0}" "\u{f}\u{0}\u{0}\u{0}\u{0}\u{0}\u{0}\u{0}\u{633}\u{2}\u{682 | |
}\u{7f}\u{0}": "\u{682}\u{7f}\u{0}\u{0}\u{16}\u{0}\u{0}\u{0}\u{0}\u{0}\u{0}\u{0}3\u{2}\u{682}\u{7f}\u{0}\u{0}\u{7}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub fn get_page(&self, page: i32) -> Option<Vec<Entry>> { | |
self.get_page_data(page) | |
.map(|strings| strings.into_iter() | |
.filter_map(|ref line| self.make_entry(line)) | |
.inspect(|ref e| debug!("Inspect 1: {}", e)) | |
.collect::<Vec<_>>() | |
.into_iter().inspect(|ref e| debug!("Inspect 2: {}", e)) | |
.collect::<Vec<_>>() | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment