Use expect over unwrap, for panic-in-panic aborts

... doesn't help, but it can't hurt either, right?
This commit is contained in:
Dale Wijnand 2018-11-30 16:48:22 +00:00
parent d27b47baf6
commit b938637893
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF

View File

@ -682,7 +682,7 @@ impl Execs {
self.expect_json = Some(
expected
.split("\n\n")
.map(|obj| obj.parse().unwrap())
.map(|line| line.parse().expect("line to be a valid JSON value"))
.collect(),
);
self