Skip to content

Commit

Permalink
Replace deprecated test library with memchr
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbabcock committed Apr 11, 2024
1 parent d55148a commit c526da0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/it/ironman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
);

Expand Down

0 comments on commit c526da0

Please sign in to comment.