Skip to content

Commit

Permalink
refactor: use .contains() instead of iterating over HashSet
Browse files Browse the repository at this point in the history
  • Loading branch information
frol committed Feb 4, 2024
1 parent a79dd72 commit b381798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion near-sdk/tests/abi_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn ensure_abi_for_prepended_functions() {
// ensure methods are prepended
PREPENDED_METHODS.map(|method| {
assert!(
near_abi_symbols.iter().any(|f| f.eq(&format!("__near_abi_{}", method))),
near_abi_symbols.contains(format!("__near_abi_{}", method).as_str()),
"ABI should contain prepended method {}",
method
);
Expand Down

0 comments on commit b381798

Please sign in to comment.