We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eedf38d commit bcdce4aCopy full SHA for bcdce4a
exercises/conversions/from_into.rs
@@ -43,8 +43,7 @@ impl Default for Person {
43
// I AM NOT DONE
44
45
impl From<&str> for Person {
46
- fn from(s: &str) -> Person {
47
- }
+ fn from(s: &str) -> Person {}
48
}
49
50
fn main() {
exercises/conversions/using_as.rs
@@ -10,11 +10,9 @@
10
// Execute `rustlings hint using_as` or use the `hint` watch subcommand for a
11
// hint.
12
13
-// I AM NOT DONE
14
-
15
fn average(values: &[f64]) -> f64 {
16
let total = values.iter().sum::<f64>();
17
- total / values.len()
+ total / values.len() as f64
18
19
20
0 commit comments