100-exercises-to-learn-rust icon indicating copy to clipboard operation
100-exercises-to-learn-rust copied to clipboard

A self-paced course to learn Rust, one exercise at a time.

Results 99 100-exercises-to-learn-rust issues
Sort by recently updated
recently updated
newest added

04/Traits/07_Deref says: // TODO: whenever `title` and `description` are returned via their accessor methods, they // should be normalized—i.e. leading and trailing whitespace should be removed. // There is a...

![image](https://github.com/user-attachments/assets/da7e47e8-10ed-4949-b06c-eb025025b4df) just trying to install by following the instruction, but i'm unable to install the workshop-runner library is there any way to fix this? ``` Updating crates.io index Installing workshop-runner...

Exercises 9 to 12 of chapter 7, have `private_interface` warnings that remain after solving them that come from declaring the `server` function as public and having the type declaration of...

avoid using `to_lowercase()` twice by implementing `TryFrom` then reusing it in `TryFrom`

The code below will never print 3, and should not be an if/else. I think it's confusing to new learners to include code that does not do what it suggests....

In section 7.11 [Locks, Send and Arc](https://rust-exercises.com/100-exercises/07_threads/11_locks#locks-send-and-arc), it seems that the text contradict itself. First in the section "[Who holds the lock?](https://rust-exercises.com/100-exercises/07_threads/11_locks#who-holds-the-lock)" it says: > We can't send a Mutex...

https://github.com/mainmatter/100-exercises-to-learn-rust/blob/d347d1f72ee77b96b2d51f0405292fd0590e8162/exercises/06_ticket_management/01_arrays/src/lib.rs#L7-L15 All variants in the enum are unit-only. According to [enum casting](https://doc.rust-lang.org/reference/items/enumerations.html#r-items.enum.discriminant.coercion.intro), its discriminant can be **directly** accessed with a numeric cast. So, instead of https://github.com/mainmatter/100-exercises-to-learn-rust/blob/d347d1f72ee77b96b2d51f0405292fd0590e8162/exercises/06_ticket_management/01_arrays/src/lib.rs#L24-L33 a simplified version can...

The following test case cannot be understood without explanation of how rust handles the temporary values: https://github.com/mainmatter/100-exercises-to-learn-rust/blob/d347d1f72ee77b96b2d51f0405292fd0590e8162/exercises/07_threads/06_interior_mutability/src/lib.rs#L28-L33 The use of the wildcard _ as the binding target in the test...