rust-lang / nomicon

The Dark Arts of Advanced and Unsafe Rust Programming
https://doc.rust-lang.org/nomicon/
Apache License 2.0
1.74k stars 256 forks source link

Cleanups for tree example of splitting borrows #443

Open ratmice opened 3 months ago

ratmice commented 3 months ago

This just does some cleanups of the code in the split borrows tree example, some suggested by clippy others just seemed like simplifications that could be done.