Skip to content

Commit 092f91e

Browse files
authored
feat: make iters Send (#58)
1 parent f83f96f commit 092f91e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "osmpbfreader"
3-
version = "0.19.0"
3+
version = "0.19.1"
44
authors = ["Guillaume Pinot <[email protected]>"]
55
description = "Read OpenStreetMap PBF files in rust."
66
documentation = "https://docs.rs/osmpbfreader"

src/blocks.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use pub_iterator_type::pub_iterator_type;
1414

1515
pub_iterator_type! {
1616
#[doc="Iterator on the `OsmObj` of a `PrimitiveBlock`."]
17-
OsmObjs['a] = Box<dyn Iterator<Item = OsmObj> + 'a>
17+
OsmObjs['a] = Box<dyn Iterator<Item = OsmObj> + 'a + Send>
1818
}
1919

2020
pub fn iter(block: &PrimitiveBlock) -> OsmObjs {
@@ -24,7 +24,7 @@ pub fn iter(block: &PrimitiveBlock) -> OsmObjs {
2424

2525
pub_iterator_type! {
2626
#[doc="Iterator on the `Node` of a `PrimitiveBlock`."]
27-
Nodes['a] = Box<dyn Iterator<Item = Node> + 'a>
27+
Nodes['a] = Box<dyn Iterator<Item = Node> + 'a + Send>
2828
}
2929

3030
pub fn nodes(block: &PrimitiveBlock) -> Nodes {
@@ -34,7 +34,7 @@ pub fn nodes(block: &PrimitiveBlock) -> Nodes {
3434

3535
pub_iterator_type! {
3636
#[doc="Iterator on the `Way` of a `PrimitiveBlock`."]
37-
Ways['a] = Box<dyn Iterator<Item = Way> + 'a>
37+
Ways['a] = Box<dyn Iterator<Item = Way> + 'a + Send>
3838
}
3939

4040
pub fn ways(block: &PrimitiveBlock) -> Ways {
@@ -44,7 +44,7 @@ pub fn ways(block: &PrimitiveBlock) -> Ways {
4444

4545
pub_iterator_type! {
4646
#[doc="Iterator on the `Relation` of a `PrimitiveBlock`."]
47-
Relations['a] = Box<dyn Iterator<Item = Relation> + 'a>
47+
Relations['a] = Box<dyn Iterator<Item = Relation> + 'a + Send>
4848
}
4949

5050
pub fn relations(block: &PrimitiveBlock) -> Relations {

0 commit comments

Comments
 (0)