Commit 42d96a36 authored by Committed by Luca Barbato
Make BlockOffset derive Copy
BlockOffset has a size of 128 bits (the same as a slice), and is trivially copyable, so make it derive Copy. Once it derives Copy, clippy suggests to never pass it by reference: <https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref> So pass it by value everywhere to simplify usage. In particular, this avoids lifetimes bounds where not necessary (e.g. in get_sub_partitions()). See <https://github.com/xiph/rav1e/pull/1126#issuecomment-474532123>.
Showing with 189 additions and 192 deletions