From c526da03ada47cbc7c4c2a09199ed331ecd85e11 Mon Sep 17 00:00:00 2001 From: Nick Babcock Date: Thu, 11 Apr 2024 18:30:28 -0500 Subject: [PATCH] Replace deprecated test library with memchr --- Cargo.toml | 2 +- tests/it/ironman.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fddbbde..0da3e46 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,7 +38,7 @@ flate2 = { version = "1.0", default-features = false } zip = { version = "0.6", default-features = false, features = ["deflate"] } attohttpc = "0.28" paste = "1" -twoway = "0.2" +memchr = "2.7" # We override the test profile so that our tests run in a tolerable time as # some of the asset files are heavyweight and can take a significant amount of diff --git a/tests/it/ironman.rs b/tests/it/ironman.rs index e96bf9e..dd01c25 100644 --- a/tests/it/ironman.rs +++ b/tests/it/ironman.rs @@ -922,8 +922,8 @@ ironman_test!( }, |_query: Query, melted_data: &[u8]| { // Find inukshuk - twoway::find_bytes(melted_data, b"date_built=-2000.1.1").unwrap(); - twoway::find_bytes(melted_data, b"navy_strength=0.00000").unwrap(); + memchr::memmem::find(melted_data, b"date_built=-2000.1.1").unwrap(); + memchr::memmem::find(melted_data, b"navy_strength=0.00000").unwrap(); } );