Skip to content

Commit 7008b9f

Browse files
committed
Remove the unsafe Send impl of the iterators
1 parent a3c4f74 commit 7008b9f

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

heed/src/iterator/iter.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,6 @@ impl<KC, DC, IM> fmt::Debug for RoIter<'_, KC, DC, IM> {
208208
}
209209
}
210210

211-
/// A `RoIter` is `Send` only if the `RoTxn` is.
212-
unsafe impl<KC, DC, IM> Send for RoIter<'_, KC, DC, IM> {}
213-
214211
/// A read-write iterator structure.
215212
pub struct RwIter<'txn, KC, DC, IM = MoveThroughDuplicateValues> {
216213
cursor: RwCursor<'txn>,
@@ -557,8 +554,6 @@ impl<KC, DC, IM> fmt::Debug for RoRevIter<'_, KC, DC, IM> {
557554
}
558555
}
559556

560-
unsafe impl<KC, DC, IM> Send for RoRevIter<'_, KC, DC, IM> {}
561-
562557
/// A reverse read-write iterator structure.
563558
pub struct RwRevIter<'txn, KC, DC, IM = MoveThroughDuplicateValues> {
564559
cursor: RwCursor<'txn>,

heed/src/iterator/prefix.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,6 @@ impl<KC, DC, C, IM> fmt::Debug for RoPrefix<'_, KC, DC, C, IM> {
200200
}
201201
}
202202

203-
unsafe impl<KC, DC, IM> Send for RoPrefix<'_, WithoutTls, KC, DC, IM> {}
204-
205203
/// A read-write prefix iterator structure.
206204
pub struct RwPrefix<'txn, KC, DC, C = DefaultComparator, IM = MoveThroughDuplicateValues> {
207205
cursor: RwCursor<'txn>,
@@ -589,8 +587,6 @@ impl<KC, DC, C, IM> fmt::Debug for RoRevPrefix<'_, KC, DC, C, IM> {
589587
}
590588
}
591589

592-
unsafe impl<KC, DC, IM> Send for RoRevPrefix<'_, WithoutTls, KC, DC, IM> {}
593-
594590
/// A reverse read-write prefix iterator structure.
595591
pub struct RwRevPrefix<'txn, KC, DC, C = DefaultComparator, IM = MoveThroughDuplicateValues> {
596592
cursor: RwCursor<'txn>,

heed/src/iterator/range.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,6 @@ impl<KC, DC, C, IM> fmt::Debug for RoRange<'_, KC, DC, C, IM> {
199199
}
200200
}
201201

202-
unsafe impl<KC, DC, C, IM> Send for RoRange<'_, KC, DC, C, IM> {}
203-
204202
/// A read-write range iterator structure.
205203
pub struct RwRange<'txn, KC, DC, C = DefaultComparator, IM = MoveThroughDuplicateValues> {
206204
cursor: RwCursor<'txn>,
@@ -637,8 +635,6 @@ impl<KC, DC, C, IM> fmt::Debug for RoRevRange<'_, KC, DC, C, IM> {
637635
}
638636
}
639637

640-
unsafe impl<KC, DC, C, IM> Send for RoRevRange<'_, KC, DC, C, IM> {}
641-
642638
/// A reverse read-write range iterator structure.
643639
pub struct RwRevRange<'txn, KC, DC, C = DefaultComparator, IM = MoveThroughDuplicateValues> {
644640
cursor: RwCursor<'txn>,

0 commit comments

Comments
 (0)