5
Reading Club: The Book - Ownership Inventory Quiz no 1 [PROJECT]
(rust-book.cs.brown.edu)
A collaborative space for people to work together on learning Rust, learning about the Lemmy code base, discussing whatever confusions or difficulties we're having in these endeavours, and solving problems, including, hopefully, some contributions back to the Lemmy code base.
Rules TL;DR: Be nice, constructive, and focus on learning and working together on understanding Rust and Lemmy.
See also:
Thumbnail and banner generated by ChatGPT.
Q6: Fixing
Of the following fixes (highlighted in yellow), which fix best satisfies these three criteria:
1:
2:
3:
4:
Answer
44is a better, more idiomatic version of3, especially because it requires ownership ofargwhich is restrictive and may not even be available3does fix the problem1doesn't fix the problem2... I'm not sure about ... but I don't think having a mutableshelps with the problem either (?)