Update dependencies and fix linter warnings

This commit is contained in:
2024-08-09 18:10:59 +02:00
parent 09cdd3d569
commit 363e94aa28
3 changed files with 6 additions and 7 deletions

View File

@@ -26,4 +26,4 @@ arrayref = "0.3"
log = { version = "0.4", features = ["max_level_trace", "release_max_level_trace"] }
serde = { version = "1.0", features = ["derive"] }
bincode = "1.3.0"
bincode = "1.3"

View File

@@ -171,7 +171,7 @@ impl<'de> Deserialize<'de> for MortonEncoder {
enum Field {
CellBits,
Dimensions,
};
}
impl<'de> Deserialize<'de> for Field {
fn deserialize<D>(deserializer: D) -> Result<Field, D::Error>

View File

@@ -190,14 +190,14 @@ where
}
fn value(&self, code: SFCCode, offsets: &[SFCOffset]) -> Result<Vec<&V>, String> {
Ok(self.space.value(
self.space.value(
self.morton
.decode(code)
.iter()
.map(|e| *e as usize)
.collect(),
offsets.iter().map(|e| *e as usize).collect(),
)?)
)
}
// Build coordinate values from encoded value
@@ -301,7 +301,7 @@ where
Ok(last) => Some((idx, first, last)),
}
})
.map(move |(idx, first, last)| {
.flat_map(move |(idx, first, last)| {
// Check first & last point of the cell, if both are fully
// in the bounding box, then all the points of the cell will
// be.
@@ -341,8 +341,7 @@ where
};
b
})
.flatten();
});
Box::new(iter)
}
Err(e) => {