As a followup of #598 we should add a warn on this clippy lint
https://rust-lang.github.io/rust-clippy/master/#/needless_pass_by_value?groups=nursery,pedantic
Taking arguments by reference is more flexible and can sometimes avoid unnecessary allocations.
As a followup of #598 we should add a warn on this clippy lint
https://rust-lang.github.io/rust-clippy/master/#/needless_pass_by_value?groups=nursery,pedantic