Empowering everyone to build reliable and efficient software.
As others mention, the Debug impl calls itself, leading it to recurse until the stack overflows. Ideally, rustc's unconditional_recursion lint would warn about this, but it currently does not work across function calls (tracking issue).
A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/nightly/clippy/
Adding to what others have already said, Rust has a very useful code linting tool called Clippy.
Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
Rust should not have provided `unwrap`
3 projects | news.ycombinator.com | 15 Jul 2022
Is there ever a case you'd want to use &String::new() for something expecting &str?
2 projects | reddit.com/r/rust | 6 Apr 2022
A Rust match made in hell
2 projects | reddit.com/r/rust | 12 Feb 2022
Hey Rustaceans! Got an easy question? Ask here (32/2021)!
7 projects | reddit.com/r/rust | 9 Aug 2021
Why are most of Rustfmt features unstable?
3 projects | reddit.com/r/rust | 12 May 2022