diff options
| author | mo8it <mo8it@proton.me> | 2024-04-17 23:34:27 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-17 23:34:27 +0200 |
| commit | 2f810a4da67233716ad93e00afff6e8b260f4807 (patch) | |
| tree | f5a33357141d25d08b6726910efe33f2338b9cdb /exercises/23_conversions/from_into.rs | |
| parent | cb9f1ac9ce3c834b0cca964b6809b74508f80b54 (diff) | |
Clean up and unify exercises
Diffstat (limited to 'exercises/23_conversions/from_into.rs')
| -rw-r--r-- | exercises/23_conversions/from_into.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/exercises/23_conversions/from_into.rs b/exercises/23_conversions/from_into.rs index d2a1609..9df10da 100644 --- a/exercises/23_conversions/from_into.rs +++ b/exercises/23_conversions/from_into.rs @@ -1,11 +1,6 @@ -// from_into.rs -// // The From trait is used for value-to-value conversions. If From is implemented // correctly for a type, the Into trait should work conversely. You can read // more about it at https://doc.rust-lang.org/std/convert/trait.From.html -// -// Execute `rustlings hint from_into` or use the `hint` watch subcommand for a -// hint. #[derive(Debug)] struct Person { @@ -24,7 +19,6 @@ impl Default for Person { } } - // Your task is to complete this implementation in order for the line `let p1 = // Person::from("Mark,20")` to compile. Please note that you'll need to parse the // age component into a `usize` with something like `"4".parse::<usize>()`. The |
