From 207e4ccffea5e053571c35785751e931708d545f Mon Sep 17 00:00:00 2001 From: xx37180 Date: Thu, 3 Apr 2025 10:08:10 +0800 Subject: [PATCH] feat: make iters Send --- Cargo.toml | 2 +- src/blocks.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0dae4393..cbbae5a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "osmpbfreader" -version = "0.19.0" +version = "0.19.1" authors = ["Guillaume Pinot "] description = "Read OpenStreetMap PBF files in rust." documentation = "https://docs.rs/osmpbfreader" diff --git a/src/blocks.rs b/src/blocks.rs index a1769115..d66cadcf 100644 --- a/src/blocks.rs +++ b/src/blocks.rs @@ -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 + 'a> + OsmObjs['a] = Box + 'a + Send> } pub fn iter(block: &PrimitiveBlock) -> OsmObjs { @@ -24,7 +24,7 @@ pub fn iter(block: &PrimitiveBlock) -> OsmObjs { pub_iterator_type! { #[doc="Iterator on the `Node` of a `PrimitiveBlock`."] - Nodes['a] = Box + 'a> + Nodes['a] = Box + 'a + Send> } pub fn nodes(block: &PrimitiveBlock) -> Nodes { @@ -34,7 +34,7 @@ pub fn nodes(block: &PrimitiveBlock) -> Nodes { pub_iterator_type! { #[doc="Iterator on the `Way` of a `PrimitiveBlock`."] - Ways['a] = Box + 'a> + Ways['a] = Box + 'a + Send> } pub fn ways(block: &PrimitiveBlock) -> Ways { @@ -44,7 +44,7 @@ pub fn ways(block: &PrimitiveBlock) -> Ways { pub_iterator_type! { #[doc="Iterator on the `Relation` of a `PrimitiveBlock`."] - Relations['a] = Box + 'a> + Relations['a] = Box + 'a + Send> } pub fn relations(block: &PrimitiveBlock) -> Relations {