From ea8824eb1f32996d98f2ddd1a21d34418d5ddd06 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2020 12:05:00 +0100 Subject: [PATCH] Update pelite requirement from 0.8.0 to 0.9.0 (#4) * Update pelite requirement from 0.8.0 to 0.9.0 Updates the requirements on [pelite](https://github.com/CasualX/pelite) to permit the latest version. - [Release notes](https://github.com/CasualX/pelite/releases) - [Changelog](https://github.com/CasualX/pelite/blob/master/changelog.md) - [Commits](https://github.com/CasualX/pelite/commits) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Oliver Hamlet --- Cargo.toml | 2 +- src/version.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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]