Skip to content

Commit

Permalink
fix: Remove superfluous &self indirection
Browse files Browse the repository at this point in the history
  • Loading branch information
tysonliddell committed Dec 9, 2022
1 parent e3af483 commit 71873e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/enums/enums2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ enum Message {

impl Message {
fn call(&self) {
println!("{:?}", &self);
println!("{:?}", self);
}
}

Expand Down

0 comments on commit 71873e6

Please sign in to comment.