Skip to content

Commit

Permalink
Bump hashbrown to 0.15.2 and address deprecated coverage_helper useag…
Browse files Browse the repository at this point in the history
  • Loading branch information
nand-nor committed Feb 13, 2025
1 parent 4c939e4 commit 25ab868
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ rust-version = "1.71.1"

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

[features]
default = ["std"]
std = ["dlv-list/std"]

[dev-dependencies]
coverage-helper = "0.2.0"
serde_test = "1.0.144"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage_nightly)'] }
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//!
//! See the type documentation for more information.
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]
#![cfg_attr(all(coverage_nightly, test), feature(coverage_attribute))]
#![cfg_attr(not(feature = "std"), no_std)]

extern crate alloc;
Expand Down
4 changes: 2 additions & 2 deletions src/list_ordered_multimap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3524,8 +3524,8 @@ where

#[allow(unused_results)]
#[cfg(all(test, feature = "std"))]
#[cfg_attr(coverage_nightly, coverage(off))]
mod test {
use coverage_helper::test;

use super::*;

Expand Down Expand Up @@ -5361,7 +5361,7 @@ mod test {
#[test]
fn test_dummy_hasher_finish() {
let hasher = DummyHasher;
hasher.finish();
let _ = hasher.finish();
}

#[should_panic]
Expand Down
3 changes: 2 additions & 1 deletion src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ where

#[allow(unused_results)]
#[cfg(all(test, feature = "std"))]
#[cfg_attr(coverage_nightly, coverage(off))]
mod test {
use coverage_helper::test;

use serde_test::{assert_de_tokens_error, assert_tokens, Token};

use super::*;
Expand Down

0 comments on commit 25ab868

Please sign in to comment.