Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ruseinov committed Apr 12, 2024
1 parent 9d8ad4a commit 1232e6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions near-sdk/src/store/iterable_map/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ mod test_map {
assert_eq!(*m.get(&2).unwrap(), 4);
}

thread_local! { static DROP_VECTOR: RefCell<Vec<i32>> = RefCell::new(Vec::new()) }
thread_local! { static DROP_VECTOR: RefCell<Vec<i32>> = const { RefCell::new(Vec::new()) }}

#[derive(Hash, PartialEq, Eq, BorshSerialize, BorshDeserialize, PartialOrd, Ord)]
struct Droppable {
Expand Down Expand Up @@ -951,7 +951,7 @@ mod test_map {
}
});

#[allow(clippy::let_underscore_drop)] // kind-of a false positive
#[allow(let_underscore_drop)] // kind-of a false positive
for _ in half.by_ref() {}

DROP_VECTOR.with(|v| {
Expand Down Expand Up @@ -1239,6 +1239,7 @@ mod test_map {

#[test]
#[should_panic]
#[allow(clippy::unnecessary_operation)]
fn test_index_nonexistent() {
let mut map = IterableMap::new(b"b");

Expand Down

0 comments on commit 1232e6b

Please sign in to comment.