diff --git a/Cargo.toml b/Cargo.toml index 38e354a..35fffe1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ edition = "2018" crc32fast = "1.2.0" esplugin = "3.0.0" nom = "5.0.0" -pelite = "0.8.0" +pelite = "0.9.0" regex = "1.0.5" unicase = "2.2.0" diff --git a/src/version.rs b/src/version.rs index dab63f1..c57137b 100644 --- a/src/version.rs +++ b/src/version.rs @@ -228,7 +228,7 @@ mod tests { fn version_read_file_version_should_error_with_path_if_the_file_is_not_an_executable() { let error = Version::read_file_version(Path::new("Cargo.toml")).unwrap_err(); - assert_eq!("An error was encountered while reading the version fields of \"Cargo.toml\": bad magic", error.to_string()); + assert_eq!("An error was encountered while reading the version fields of \"Cargo.toml\": unknown magic number", error.to_string()); } #[test] @@ -300,7 +300,7 @@ mod tests { fn version_read_product_version_should_error_with_path_if_the_file_is_not_an_executable() { let error = Version::read_product_version(Path::new("Cargo.toml")).unwrap_err(); - assert_eq!("An error was encountered while reading the version fields of \"Cargo.toml\": bad magic", error.to_string()); + assert_eq!("An error was encountered while reading the version fields of \"Cargo.toml\": unknown magic number", error.to_string()); } #[test]