Rust
Rust copied to clipboard
Refactor Binary Search
Changes
- Simplify implementation logic
- Add docstring
- Rewrite tests using macro
Checklist:
- [x] I ran bellow commands using the latest version of rust nightly.
- [x] I ran
cargo clippy --all -- -D warningsjust before my last commit and fixed any issue that was found. - [x] I ran
cargo fmtjust before my last commit. - [x] I ran
cargo testjust before my last commit and all tests passed. - [x] I added my algorithm to the corresponding
mod.rsfile within its own folder, and in any parent folder(s). - [x] I added my algorithm to
DIRECTORY.mdwith the correct link. - [x] I checked
COUNTRIBUTING.mdand my code follows its guidelines.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 94.95%. Comparing base (
c2009cd) to head (e5ef33f).
Additional details and impacted files
@@ Coverage Diff @@
## master #722 +/- ##
==========================================
- Coverage 94.96% 94.95% -0.01%
==========================================
Files 303 303
Lines 22563 22533 -30
==========================================
- Hits 21426 21396 -30
Misses 1137 1137
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.