Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d7236e46 authored by Martin Geisler's avatar Martin Geisler Committed by Cherrypicker Worker
Browse files

pdl: derive `Copy` where possible

The advice from the standard library[1] is to make a type `Copy` if it
_can_ be `Copy`. Here we can simplify the code a bit by passing values
instead of references.

[1]: https://doc.rust-lang.org/std/marker/trait.Copy.html#when-should-my-type-be-copy

Test: atest pdl_tests pdl_inline_tests
(cherry picked from https://android-review.googlesource.com/q/commit:392e613914570185645761bd93e5454c7cb2b6a5)
Merged-In: Ib910dfb3ea297fae1b69a7a5571ba0ded365406e
Change-Id: Ib910dfb3ea297fae1b69a7a5571ba0ded365406e
parent 06634978
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment