From a6925424103f7eb3c442afc4151b4c0298c043c9 Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Sun, 4 Feb 2024 08:44:02 -0500 Subject: [PATCH] `deps`: bump `file-format` As it adds new formats detected and several fixes https://github.com/mmalecot/file-format/blob/main/CHANGELOG.md#version-0240-2024-02-03 --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- tests/test_sniff.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 19d78c656..19797c88d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1705,9 +1705,9 @@ checksum = "27573eac26f4dd11e2b1916c3fe1baa56407c83c71a773a8ba17ec0bca03b6b7" [[package]] name = "file-format" -version = "0.23.0" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "865ed54301d7e5136763302a3c9e595317e08a3119e19a078ab1ed269eb18edc" +checksum = "4ba1b81b3c213cf1c071f8bf3b83531f310df99642e58c48247272eef006cae5" [[package]] name = "filetime" diff --git a/Cargo.toml b/Cargo.toml index 334a97f7e..e0211b3e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -98,7 +98,7 @@ ext-sort = { version = "0.1", features = [ "memory-limit", ], default-features = false } flate2 = { version = "1", optional = true } -file-format = { version = "0.23", features = ["reader"] } +file-format = { version = "0.24", features = ["reader"] } filetime = "0.2" flexi_logger = { version = "0.27", features = [ "async", diff --git a/tests/test_sniff.rs b/tests/test_sniff.rs index 145e42b33..d3b8b9890 100644 --- a/tests/test_sniff.rs +++ b/tests/test_sniff.rs @@ -261,7 +261,7 @@ Quote Char: none Flexible: false Is UTF8: true Detected Mime Type: text/plain -Detected Kind: Text +Detected Kind: Other Retrieved Size (bytes): 27 File Size (bytes): 27 Sampled Records: 2 @@ -275,7 +275,7 @@ Fields: 1: Unsigned h2 2: Text h3"#; - assert!(dos2unix(&got).trim_end().ends_with(expected_end.trim_end())); + assert!(dos2unix(&got).trim_end().ends_with(expected_end)); } #[test]