chore: Run rustfmt on exercises

This commit is contained in:
Étienne Barrié
2020-08-10 10:24:21 -04:00
parent c4853ee6bb
commit 3144d3ae63
12 changed files with 30 additions and 25 deletions

View File

@@ -7,4 +7,3 @@ fn main() {
let mut shopping_list: Vec<?> = Vec::new();
shopping_list.push("milk");
}

View File

@@ -4,7 +4,7 @@
// I AM NOT DONE
struct Wrapper {
value: u32
value: u32,
}
impl Wrapper {

View File

@@ -33,7 +33,10 @@ mod tests {
student_name: "Tom Wriggle".to_string(),
student_age: 12,
};
assert_eq!(report_card.print(), "Tom Wriggle (12) - achieved a grade of 2.1");
assert_eq!(
report_card.print(),
"Tom Wriggle (12) - achieved a grade of 2.1"
);
}
#[test]
@@ -44,6 +47,9 @@ mod tests {
student_name: "Gary Plotter".to_string(),
student_age: 11,
};
assert_eq!(report_card.print(), "Gary Plotter (11) - achieved a grade of A+");
assert_eq!(
report_card.print(),
"Gary Plotter (11) - achieved a grade of A+"
);
}
}