mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-07 02:13:29 +02:00
Merge remote-tracking branch 'upstream/main' into fix-enum-variant-inconsistency
This commit is contained in:
@@ -1,13 +1,7 @@
|
||||
// enums2.rs
|
||||
//
|
||||
// Execute `rustlings hint enums2` or use the `hint` watch subcommand for a
|
||||
// hint.
|
||||
|
||||
// I AM NOT DONE
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug)]
|
||||
enum Message {
|
||||
// TODO: define the different variants used below
|
||||
// TODO: Define the different variants used below.
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
@@ -18,7 +12,7 @@ struct Point {
|
||||
|
||||
impl Message {
|
||||
fn call(&self) {
|
||||
println!("{:?}", self);
|
||||
println!("{self:?}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user