do not need to dereference an enum

This commit is contained in:
Mackenzie Clark 2019-02-04 15:01:12 -08:00
parent c771f2e677
commit 73a8619bc5

View File

@ -30,7 +30,7 @@ mod tests {
let result = instance.call("stack-overflow", &[]);
match result {
Err(err) => match *err {
Err(err) => match err {
CallError::Runtime(RuntimeError::Unknown { msg }) => {
assert!(!msg.contains("segmentation violation"));
assert!(!msg.contains("bus error"));