TheAlgorithms / Rust

All Algorithms implemented in Rust
MIT License
21.51k stars 2.1k forks source link

chore: add `map_unwrap_or` warning #739

Closed vil02 closed 3 weeks ago

vil02 commented 3 weeks ago

Description

This PR adds map_unwrap_or into the clippy setup.

Similar to #738.

Codecov failuers are super annoying...

Checklist:

Please make sure that if there is a test that takes too long to run ( > 300ms), you #[ignore] that or try to optimize your code or make the test easier to run. We have this rule because we have hundreds of tests to run; If each one of them took 300ms, we would have to wait for a long time.