Merge pull request #1192 from aaarkid/patch-1

fix: Add a deref in the test code
pull/1239/head
liv 2 years ago committed by GitHub
commit 49a101b189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
}
}

Loading…
Cancel
Save