From 2f46b5056178fc693264f7622002c9482ecda738 Mon Sep 17 00:00:00 2001 From: Joel Galenson Date: Mon, 9 Aug 2021 10:37:52 -0700 Subject: Upgrade rust/crates/plotters-backend to 0.3.2 Test: make Change-Id: I91a14dc3a6ebc67ea9f30f2b4f86619eae05b883 --- .cargo_vcs_info.json | 2 +- .github/dependabot.yml | 7 +++++++ Cargo.toml | 2 +- Cargo.toml.orig | 2 +- METADATA | 8 ++++---- src/rasterizer/line.rs | 2 +- 6 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json index 4b0f3cd..46b53e4 100644 --- a/.cargo_vcs_info.json +++ b/.cargo_vcs_info.json @@ -1,5 +1,5 @@ { "git": { - "sha1": "c6b06516c13c2ab01854908bab6e59c004725353" + "sha1": "def8d8b4033af35963bc9b11cdb444cf99f91b5a" } } diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5cde165 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: +- package-ecosystem: cargo + directory: "/" + schedule: + interval: daily + open-pull-requests-limit: 10 diff --git a/Cargo.toml b/Cargo.toml index e511ae2..582dabc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ [package] edition = "2018" name = "plotters-backend" -version = "0.3.0" +version = "0.3.2" authors = ["Hao Hou "] description = "Plotters Backend API" homepage = "https://plotters-rs.github.io" diff --git a/Cargo.toml.orig b/Cargo.toml.orig index b2f0750..0d27003 100644 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -1,6 +1,6 @@ [package] name = "plotters-backend" -version = "0.3.0" +version = "0.3.2" authors = ["Hao Hou "] edition = "2018" license = "MIT" diff --git a/METADATA b/METADATA index 080b3f4..f2afc06 100644 --- a/METADATA +++ b/METADATA @@ -7,13 +7,13 @@ third_party { } url { type: ARCHIVE - value: "https://static.crates.io/crates/plotters-backend/plotters-backend-0.3.0.crate" + value: "https://static.crates.io/crates/plotters-backend/plotters-backend-0.3.2.crate" } - version: "0.3.0" + version: "0.3.2" license_type: NOTICE last_upgrade_date { year: 2021 - month: 4 - day: 1 + month: 8 + day: 9 } } diff --git a/src/rasterizer/line.rs b/src/rasterizer/line.rs index 0f24b0a..7a646f4 100644 --- a/src/rasterizer/line.rs +++ b/src/rasterizer/line.rs @@ -6,7 +6,7 @@ pub fn draw_line( mut to: BackendCoord, style: &S, ) -> Result<(), DrawingErrorKind> { - if style.color().alpha == 0.0 { + if style.color().alpha == 0.0 || style.stroke_width() == 0 { return Ok(()); } -- cgit v1.2.3