diff options
author | Joel Galenson <jgalenson@google.com> | 2021-08-10 16:44:43 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-08-10 16:44:43 +0000 |
commit | 868316378460a6b891a2cb0296903757e3f234c3 (patch) | |
tree | 67207287cf373ca4f6c5aacd8fc76810f422853b | |
parent | f3aff18d620c5cedd554e25666e0759671290b27 (diff) | |
parent | a5293d462e07f6d0a196dcbd5bbf23b0df03d43e (diff) | |
download | plotters-backend-868316378460a6b891a2cb0296903757e3f234c3.tar.gz |
Upgrade rust/crates/plotters-backend to 0.3.2 am: 2f46b50561 am: 6cdb8fa341 am: 17dfd0e404 am: a5293d462e
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/plotters-backend/+/1791071
Change-Id: Ic83362627effac66821566ba8a38bcdeb20b83cf
-rw-r--r-- | .cargo_vcs_info.json | 2 | ||||
-rw-r--r-- | .github/dependabot.yml | 7 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | Cargo.toml.orig | 2 | ||||
-rw-r--r-- | METADATA | 8 | ||||
-rw-r--r-- | src/rasterizer/line.rs | 2 |
6 files changed, 15 insertions, 8 deletions
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 @@ -13,7 +13,7 @@ [package] edition = "2018" name = "plotters-backend" -version = "0.3.0" +version = "0.3.2" authors = ["Hao Hou <haohou302@gmail.com>"] 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 <haohou302@gmail.com>"] edition = "2018" license = "MIT" @@ -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<DB: DrawingBackend, S: BackendStyle>( mut to: BackendCoord, style: &S, ) -> Result<(), DrawingErrorKind<DB::ErrorType>> { - if style.color().alpha == 0.0 { + if style.color().alpha == 0.0 || style.stroke_width() == 0 { return Ok(()); } |