Update tests/diff.rs

Co-authored-by: Alexander Theißen <alex.theissen@me.com>
This commit is contained in:
Sergei Shulepov
2021-06-10 10:49:16 +02:00
committed by GitHub
parent 717aa8f0cb
commit 9e98400de0
+1 -1
View File
@@ -66,7 +66,7 @@ fn run_diff_test<F: FnOnce(&[u8]) -> Vec<u8>>(test_dir: &str, name: &str, test:
}
}
if std::env::var("BLESS").is_ok() {
if std::env::var_os("BLESS").is_some() {
dump(&expected_path, actual_wat.as_bytes()).expect("Failed to write to expected");
} else {
panic!();