Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Saveau <[email protected]>
  • Loading branch information
SUPERCILEX committed Feb 2, 2024
1 parent c29a943 commit ead69ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//! [CppCon talk]: https://www.youtube.com/watch?v=ncHmEUmJZf4

#![no_std]
#![cfg_attr(feature = "nightly", allow(internal_features))]
#![cfg_attr(
feature = "nightly",
feature(
Expand Down
2 changes: 1 addition & 1 deletion src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6805,7 +6805,7 @@ mod test_map {
assert_eq!(m2.len(), 2);
}

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)]
struct Droppable {
Expand Down
3 changes: 2 additions & 1 deletion src/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2811,7 +2811,7 @@ mod test_set {
assert_eq!(last_i, 49);
}

for _ in &s {
if s.iter().next().is_some() {
panic!("s should be empty!");
}

Expand All @@ -2825,6 +2825,7 @@ mod test_set {
use core::hash;

#[derive(Debug)]
#[allow(dead_code)]
struct Foo(&'static str, i32);

impl PartialEq for Foo {
Expand Down

0 comments on commit ead69ce

Please sign in to comment.