mirror of
https://github.com/notohh/rustlings.git
synced 2025-07-30 09:00:05 -04:00
Fix warnings
This commit is contained in:
parent
a4c07ca948
commit
b87aa98634
18 changed files with 28 additions and 8 deletions
exercises/08_enums
|
@ -1,3 +1,4 @@
|
|||
#[allow(dead_code)]
|
||||
#[derive(Debug)]
|
||||
enum Message {
|
||||
// TODO: Define the different variants used below.
|
||||
|
@ -5,7 +6,7 @@ enum Message {
|
|||
|
||||
impl Message {
|
||||
fn call(&self) {
|
||||
println!("{:?}", self);
|
||||
println!("{self:?}");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue