Skip to content

Commit 4521aed

Browse files
authored
Merge pull request #1293 from tysonliddell/fix_self_parameter
fix: Remove superfluous &self indirection
2 parents 4c3a00b + 71873e6 commit 4521aed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/enums/enums2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ enum Message {
1010

1111
impl Message {
1212
fn call(&self) {
13-
println!("{:?}", &self);
13+
println!("{:?}", self);
1414
}
1515
}
1616

0 commit comments

Comments
 (0)