comment was looking for a rusty way
was reading the code and noticed a comment looking for a rustier way to do this, so i figured i'd write a quick option. no change to behavior
also i noticed the codebase hasn't been formatted in a while - is there desire for a pre-commit hook or CI job that runs cargo fmt?
I'm not a maintainer, but at least on my end I would love to see all the code go through cargo fmt and ruff format.
Also this implementation is much nicer to read, thank you.
@oopsbagel probably best to do the mass format in a separate PR and create a blame.ignoreRevsFile to go along with it so that blames don't all point to the format commit
from there, a pre-commit hook or CI check can be added to ensure it stays formatted going forward
@wgreenberg anything that could be fixed with a rustfmt.toml?
thanks! and re: automatically running cargo fmt, perhaps i'm a heathen for this but i occasionally disagree w/ how fmt feels about certain whitespace decisions. i don't feel particularly strongly about this, though!
Could always include nofmt annotations in the code for certain sections as well. I also don't love 100% of the results of cargo fmt.