1
0
Fork 0
mirror of https://github.com/notohh/rustlings.git synced 2025-06-29 14:27:42 -04:00

Fix warnings

This commit is contained in:
mo8it 2024-07-04 13:38:35 +02:00
parent a4c07ca948
commit b87aa98634
18 changed files with 28 additions and 8 deletions
solutions/08_enums

View file

@ -1,3 +1,4 @@
#[allow(dead_code)]
#[derive(Debug)]
enum Message {
Move { x: i64, y: i64 },
@ -8,7 +9,7 @@ enum Message {
impl Message {
fn call(&self) {
println!("{:?}", self);
println!("{self:?}");
}
}