diff options
| author | mo8it <mo8it@proton.me> | 2024-04-11 02:51:02 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-11 02:51:02 +0200 |
| commit | fa1f239a702eb2c0b7e0115e986481156961bbc8 (patch) | |
| tree | 08ac7c8638546f80ac650474dfe4126103a15e54 /exercises/23_conversions | |
| parent | 4bb6bda9f6416e30233342e73fc9a8486faa3f98 (diff) | |
Remove "I AM NOT DONE" and the verify mode and add AppState
Diffstat (limited to 'exercises/23_conversions')
| -rw-r--r-- | exercises/23_conversions/as_ref_mut.rs | 2 | ||||
| -rw-r--r-- | exercises/23_conversions/from_into.rs | 2 | ||||
| -rw-r--r-- | exercises/23_conversions/from_str.rs | 2 | ||||
| -rw-r--r-- | exercises/23_conversions/try_from_into.rs | 2 | ||||
| -rw-r--r-- | exercises/23_conversions/using_as.rs | 2 |
5 files changed, 0 insertions, 10 deletions
diff --git a/exercises/23_conversions/as_ref_mut.rs b/exercises/23_conversions/as_ref_mut.rs index 2ba9e3f..cd2c93b 100644 --- a/exercises/23_conversions/as_ref_mut.rs +++ b/exercises/23_conversions/as_ref_mut.rs @@ -7,8 +7,6 @@ // Execute `rustlings hint as_ref_mut` or use the `hint` watch subcommand for a // hint. -// I AM NOT DONE - // Obtain the number of bytes (not characters) in the given argument. // TODO: Add the AsRef trait appropriately as a trait bound. fn byte_counter<T>(arg: T) -> usize { diff --git a/exercises/23_conversions/from_into.rs b/exercises/23_conversions/from_into.rs index 11787c3..d2a1609 100644 --- a/exercises/23_conversions/from_into.rs +++ b/exercises/23_conversions/from_into.rs @@ -41,8 +41,6 @@ impl Default for Person { // If while parsing the age, something goes wrong, then return the default of // Person Otherwise, then return an instantiated Person object with the results -// I AM NOT DONE - impl From<&str> for Person { fn from(s: &str) -> Person {} } diff --git a/exercises/23_conversions/from_str.rs b/exercises/23_conversions/from_str.rs index e209347..ed91ca5 100644 --- a/exercises/23_conversions/from_str.rs +++ b/exercises/23_conversions/from_str.rs @@ -31,8 +31,6 @@ enum ParsePersonError { ParseInt(ParseIntError), } -// I AM NOT DONE - // Steps: // 1. If the length of the provided string is 0, an error should be returned // 2. Split the given string on the commas present in it diff --git a/exercises/23_conversions/try_from_into.rs b/exercises/23_conversions/try_from_into.rs index 32d6ef3..2316655 100644 --- a/exercises/23_conversions/try_from_into.rs +++ b/exercises/23_conversions/try_from_into.rs @@ -27,8 +27,6 @@ enum IntoColorError { IntConversion, } -// I AM NOT DONE - // Your task is to complete this implementation and return an Ok result of inner // type Color. You need to create an implementation for a tuple of three // integers, an array of three integers, and a slice of integers. diff --git a/exercises/23_conversions/using_as.rs b/exercises/23_conversions/using_as.rs index 414cef3..9f617ec 100644 --- a/exercises/23_conversions/using_as.rs +++ b/exercises/23_conversions/using_as.rs @@ -10,8 +10,6 @@ // Execute `rustlings hint using_as` or use the `hint` watch subcommand for a // hint. -// I AM NOT DONE - fn average(values: &[f64]) -> f64 { let total = values.iter().sum::<f64>(); total / values.len() |
