fix: Add a deref in the test code
It's virtually impossible to write a the `num_sq` function to take the Box since it doesn't implement `MulAssign`.
@@ -54,7 +54,7 @@ mod tests {
#[test]
fn mult_box() {
let mut num: Box<u32> = Box::new(3);
- num_sq(&mut num);
+ num_sq(&mut *num);
assert_eq!(*num, 9);
}
}
