Skip to content

Commit 31ddcb7

Browse files
committed
chore: upgrade to plotters crates.io version
- Cargo.toml - update edition to 2021 and resolver = "2" Signed-off-by: Lachezar Lechev <[email protected]>
1 parent 1462258 commit 31ddcb7

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22
name = "plotters-canvas"
33
version = "0.3.1"
44
authors = ["Hao Hou <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
license = "MIT"
77
description = "Plotters HTML5 Canvas Backend"
88
homepage = "https://plotters-rs.github.io"
99
repository = "https://github.com/plotters-rs/plotters-canvas"
1010
readme = "README.md"
11+
resolver = "2"
1112

1213
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1314

1415
[dependencies.plotters-backend]
15-
git = "https://github.com/plotters-rs/plotters"
16+
version = "0.3"
1617

1718
[dependencies]
1819
js-sys= "0.3.32"
@@ -27,4 +28,4 @@ wasm-bindgen-test = "^0.3.17"
2728

2829
[dev-dependencies.plotters]
2930
default_features = false
30-
git = "https://github.com/plotters-rs/plotters"
31+
version = "0.3"

src/canvas.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,19 +556,19 @@ mod test {
556556
// not horizontal nor vertical
557557
assert_eq!(
558558
((10.0, 10.0), (20.0, 20.0)),
559-
fine_hor_ver_lines((10.0, 10.0), (20.0, 20.0))
559+
fine_hor_ver_lines((10, 10), (20, 20))
560560
);
561561

562562
// vertical
563563
assert_eq!(
564564
((9.5, 10.0), (19.5, 10.0)),
565-
fine_hor_ver_lines((10.0, 10.0), (20.0, 10.0))
565+
fine_hor_ver_lines((10, 10), (20, 10))
566566
);
567567

568568
// horizontal
569569
assert_eq!(
570570
((10.0, 9.5), (10.0, 19.5)),
571-
fine_hor_ver_lines((10.0, 10.0), (10.0, 20.0))
571+
fine_hor_ver_lines((10, 10), (10, 20))
572572
);
573573
}
574574
}

0 commit comments

Comments
 (0)