help me make the code more idiomatic
#1 opened on May 12, 2018
Repository metrics
- Stars
- (0 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
I'm a Rust beginner, so probably there are a few antipatterns in the codebase. I'm grateful for hints about how to solve some problems more elegantly. Specifically:
float ordering: https://github.com/derhuerst/synchronous-autocomplete-rs/blob/12fc8890a004f073b56f731352d527f032e2050a/src/lib.rs#L143-L147
stop inserting & truncating: https://github.com/derhuerst/synchronous-autocomplete-rs/blob/12fc8890a004f073b56f731352d527f032e2050a/src/lib.rs#L150-L151
DRY the deep equal logic: https://github.com/derhuerst/synchronous-autocomplete-rs/blob/12fc8890a004f073b56f731352d527f032e2050a/src/lib.rs#L209
find a way to run the benchmarks without running tests: https://github.com/derhuerst/synchronous-autocomplete-rs/blob/12fc8890a004f073b56f731352d527f032e2050a/benches/main.rs#L30-L34