Fix clippy::trivially-copy-pass-by-ref

This commit is contained in:
Héctor Ramón Jiménez 2023-09-20 04:33:48 +02:00
parent 34f07b6027
commit 6c386e90a1
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
6 changed files with 48 additions and 55 deletions

View file

@ -24,7 +24,7 @@ pub enum Kind {
}
impl Kind {
fn next(&self) -> Kind {
fn next(self) -> Kind {
match self {
Kind::Single => Kind::Double,
Kind::Double => Kind::Triple,