Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "osmpbfreader"
version = "0.19.0"
version = "0.19.1"
authors = ["Guillaume Pinot <[email protected]>"]
description = "Read OpenStreetMap PBF files in rust."
documentation = "https://docs.rs/osmpbfreader"
Expand Down
8 changes: 4 additions & 4 deletions src/blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use pub_iterator_type::pub_iterator_type;

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

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

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

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

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

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

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

pub fn relations(block: &PrimitiveBlock) -> Relations {
Expand Down
Loading