Skip to content

Commit ad7903b

Browse files
committed
Bump hashbrown to 0.15.2 and address deprecated coverage_helper useage (see rust-lang/rust#126721)
1 parent 4c939e4 commit ad7903b

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Updated `hashbrown` dependency to `0.15.2`.
13+
- Removed `coverage-helper` dependency
14+
- Addressed clippy warnings regarding `#[coverage(...)]` attribute
15+
1016
# 0.7.1 - 10-24-2023
1117

1218
### Changed

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ rust-version = "1.71.1"
1212

1313
[dependencies]
1414
dlv-list = { version = "0.5", default-features = false }
15-
hashbrown = { version = "0.14.0", default-features = false }
15+
hashbrown = { version = "0.15.2", default-features = false, features=["raw-entry"] }
1616
serde = { version = "1", optional = true, default-features = false }
1717

1818
[features]
1919
default = ["std"]
2020
std = ["dlv-list/std"]
2121

2222
[dev-dependencies]
23-
coverage-helper = "0.2.0"
2423
serde_test = "1.0.144"
24+
25+
[lints.rust]
26+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage_nightly)'] }

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//!
44
//! See the type documentation for more information.
55
6-
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]
6+
#![cfg_attr(all(coverage_nightly, test), feature(coverage_attribute))]
77
#![cfg_attr(not(feature = "std"), no_std)]
88

99
extern crate alloc;

src/list_ordered_multimap.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3524,8 +3524,8 @@ where
35243524

35253525
#[allow(unused_results)]
35263526
#[cfg(all(test, feature = "std"))]
3527+
#[cfg_attr(coverage_nightly, coverage(off))]
35273528
mod test {
3528-
use coverage_helper::test;
35293529

35303530
use super::*;
35313531

@@ -5361,7 +5361,7 @@ mod test {
53615361
#[test]
53625362
fn test_dummy_hasher_finish() {
53635363
let hasher = DummyHasher;
5364-
hasher.finish();
5364+
let _ = hasher.finish();
53655365
}
53665366

53675367
#[should_panic]

src/serde.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ where
7979

8080
#[allow(unused_results)]
8181
#[cfg(all(test, feature = "std"))]
82+
#[cfg_attr(coverage_nightly, coverage(off))]
8283
mod test {
83-
use coverage_helper::test;
84+
8485
use serde_test::{assert_de_tokens_error, assert_tokens, Token};
8586

8687
use super::*;

0 commit comments

Comments
 (0)