Fix clippy warning in test rasterband lifetime
MODIFY
src/raster/tests.rs
src/raster/tests.rs
@@ -631,10 +631,13 @@ fn test_fail_read_overviews() {
#[test]
fn test_rasterband_lifetime() {
let dataset: Dataset = Dataset::open(fixture!("tinymarble.tif")).unwrap();
+
+ let overview = {
let rasterband = dataset.rasterband(1).unwrap();
let overview = rasterband.overview(0).unwrap();
+ overview
+ };
- drop(rasterband);
assert!(overview.no_data_value().is_none());
}

Fix clippy warning in test rasterband lifetime