Skip to content

Commit c9ee14c

Browse files
committed
Use Dims for buffer dimensions
1 parent 1a30178 commit c9ee14c

File tree

7 files changed

+105
-107
lines changed

7 files changed

+105
-107
lines changed

core/src/render/raster.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ mod tests {
253253

254254
#[test]
255255
fn shared_edge_should_not_have_gaps_or_overdraw() {
256-
let mut buf = Buf2::new(20, 10);
256+
let mut buf = Buf2::new((20, 10));
257257

258258
let verts = [
259259
vec3(8.0, 0.0, 0.0),

core/src/render/tex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ mod tests {
236236
#[rustfmt::skip]
237237
fn tex() -> Texture<Buf2<Color3>> {
238238
Texture::from(Buf2::new_from(
239-
2, 2, vec![
239+
(2, 2), vec![
240240
rgb(0xFF, 0, 0),
241241
rgb(0, 0xFF, 0),
242242
rgb(0, 0, 0xFF),

0 commit comments

Comments
 (0)