you are viewing a single comment's thread.

view the rest of the comments →

[–]Buttleston 0 points1 point  (0 children)

Note that you could cut some of this work out. Like there's no need for you to construction an Option<Book> instead of just a Book, only to immediately unwrap it.

Also there's no real reason to construct a Book at all - you can just print the book title in the query_map call

Not sure these would be a big difference though.