You've already forked rust-users
mirror of
https://github.com/uutils/rust-users.git
synced 2026-06-10 15:48:37 -07:00
78c4b410db
- Extract all the 'if ptr.is_null() .. else ..' logic into a function that's basically the ptr_as_ref feature. - Start using 'if let' syntax for some of these methods, which I'm not sure was around when I started writing them. - vec![] -> Vec::new() - loop -> for i in 0.. - Better comments, too