Skip to content

Commit

Permalink
remove turbofish in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Dec 9, 2024
1 parent c13ef0e commit 5edca92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crossbeam-skiplist/tests/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ fn lower_bound() {
s.insert(40, 4);
s.insert(20, 2);

assert_eq!(*s.lower_bound::<i32>(Bound::Unbounded).unwrap().value(), 1);
assert_eq!(*s.lower_bound(Bound::Unbounded).unwrap().value(), 1);

assert_eq!(*s.lower_bound(Bound::Included(&10)).unwrap().value(), 1);
assert_eq!(*s.lower_bound(Bound::Included(&20)).unwrap().value(), 2);
Expand Down Expand Up @@ -477,7 +477,7 @@ fn upper_bound() {
s.insert(40, 4);
s.insert(20, 2);

assert_eq!(*s.upper_bound::<i32>(Bound::Unbounded).unwrap().value(), 5);
assert_eq!(*s.upper_bound(Bound::Unbounded).unwrap().value(), 5);

assert_eq!(*s.upper_bound(Bound::Included(&10)).unwrap().value(), 1);
assert_eq!(*s.upper_bound(Bound::Included(&20)).unwrap().value(), 2);
Expand Down
4 changes: 2 additions & 2 deletions crossbeam-skiplist/tests/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ fn lower_bound() {
s.insert(40);
s.insert(20);

assert_eq!(*s.lower_bound::<i32>(Bound::Unbounded).unwrap(), 10);
assert_eq!(*s.lower_bound(Bound::Unbounded).unwrap(), 10);

assert_eq!(*s.lower_bound(Bound::Included(&10)).unwrap(), 10);
assert_eq!(*s.lower_bound(Bound::Included(&20)).unwrap(), 20);
Expand Down Expand Up @@ -330,7 +330,7 @@ fn upper_bound() {
s.insert(40);
s.insert(20);

assert_eq!(*s.upper_bound::<i32>(Bound::Unbounded).unwrap(), 50);
assert_eq!(*s.upper_bound(Bound::Unbounded).unwrap(), 50);

assert_eq!(*s.upper_bound(Bound::Included(&10)).unwrap(), 10);
assert_eq!(*s.upper_bound(Bound::Included(&20)).unwrap(), 20);
Expand Down

0 comments on commit 5edca92

Please sign in to comment.