diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-03-24 13:26:21 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-03-24 13:26:21 +0100 |
commit | 4327d932613b329e6e3b33d78f55662127bd4203 (patch) | |
tree | eb1101e05623257f71eb4fe02e9dd6c835e0afee | |
parent | e8ce405349f2473e1353632bd455261b8ef9d479 (diff) | |
download | kondou-4327d932613b329e6e3b33d78f55662127bd4203.tar.gz kondou-4327d932613b329e6e3b33d78f55662127bd4203.tar.bz2 kondou-4327d932613b329e6e3b33d78f55662127bd4203.zip |
update dependencies
-rw-r--r-- | Cargo.toml | 8 | ||||
-rw-r--r-- | src/render.rs | 8 |
2 files changed, 8 insertions, 8 deletions
@@ -7,17 +7,17 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -image = "0.22" -imageproc = "0.19" +image = "0.23" +imageproc = "0.20" rusttype = "0.8" reqwest = { version = "0.10", features = ["default-tls", "blocking", "json"] } serde = { version = "1.0", features = ["std", "derive"] } serde_json = "1.0" clap = "2.33" xdg = "2.2.0" -itertools = "0.8.0" +itertools = "0.9.0" md5 = "0.7" -base64 = "0.11" +base64 = "0.12" termcolor = "1.0" num_enum = "0.4" num-traits = "0.2" diff --git a/src/render.rs b/src/render.rs index 3560b5a..cb6a4fb 100644 --- a/src/render.rs +++ b/src/render.rs @@ -1,8 +1,8 @@ use super::api::{Api, ApiError, Skill, Specialization, Trait}; use super::bt::{BuildTemplate, TraitChoice, Traitline}; use image::{ - imageops, CatmullRom, DynamicImage, GenericImage, GenericImageView, ImageBuffer, Pixel, - Primitive, Rgba, RgbaImage, + imageops, imageops::FilterType::CatmullRom, DynamicImage, GenericImage, GenericImageView, + ImageBuffer, Pixel, Primitive, Rgba, RgbaImage, }; use imageproc::{drawing, rect::Rect}; use num_traits::{Num, NumCast}; @@ -165,7 +165,7 @@ impl<'r> Renderer<'r> { self.options.skill_size, CatmullRom, ); - buffer.copy_from(&img, i as u32 * self.options.skill_size, 0); + buffer.copy_from(&img, i as u32 * self.options.skill_size, 0)?; } } Ok(buffer) @@ -391,7 +391,7 @@ impl<'r> Renderer<'r> { Alignment::Center => half(width - image.width()), Alignment::Right => width - image.width(), }; - buffer.copy_from(image, pos_x, pos_y); + buffer.copy_from(image, pos_x, pos_y)?; pos_y += image.height(); } |