Skip to content

Commit c652ab8

Browse files
committed
Fix example dataset size types
Signed-off-by: netthier <[email protected]>
1 parent daad8a1 commit c652ab8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/ex.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ fn main() {
2121
}
2222
})
2323
.collect();
24-
let h = raw_data["height"].as_u64().unwrap() as u32;
25-
let w = raw_data["width"].as_u64().unwrap() as u32;
24+
let h = raw_data["height"].as_u64().unwrap() as usize;
25+
let w = raw_data["width"].as_u64().unwrap() as usize;
2626

2727
let x_origin = -6.144721171428571;
2828
let y_origin = 51.78171334283718;
@@ -75,8 +75,8 @@ fn main() {
7575
}
7676
})
7777
.collect();
78-
let h = raw_data["height"].as_u64().unwrap() as u32;
79-
let w = raw_data["width"].as_u64().unwrap() as u32;
78+
let h = raw_data["height"].as_u64().unwrap() as usize;
79+
let w = raw_data["width"].as_u64().unwrap() as usize;
8080

8181
let contours = ContourBuilder::new(w, h, true)
8282
.isobands(

0 commit comments

Comments
 (0)