Skip to content

Commit

Permalink
rust 2021 edition
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev committed Mar 8, 2024
1 parent b4837ae commit 2d2c324
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "seize"
version = "0.2.5"
edition = "2018"
edition = "2021"
license = "MIT"
authors = ["Ibraheem Ahmed <[email protected]>"]
description = "Fast, efficient, and robust memory reclamation for concurrent data structures."
Expand Down
5 changes: 3 additions & 2 deletions tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ fn reentrant() {

move || {
let guard = collector.enter();
for object in objects.0 {
for object in { objects }.0 {
unsafe { guard.retire(object, reclaim::boxed::<DropTrack>) }
}
}
Expand Down Expand Up @@ -366,8 +366,9 @@ fn reentrant() {
let collector = collector.clone();

move || {
let objects = objects;

Check failure on line 369 in tests/lib.rs

View workflow job for this annotation

GitHub Actions / Clippy

redundant redefinition of a binding `objects`
let guard = collector.enter();
for object in objects.0 {
for object in { objects }.0 {
unsafe { guard.retire(object, reclaim::boxed::<DropTrack>) }
}
}
Expand Down

0 comments on commit 2d2c324

Please sign in to comment.