From 37cde1713df07852520a6b430efa51af892821ed Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Fri, 6 Nov 2020 16:16:17 +0000 Subject: [PATCH] remove unused imports; bump --- Cargo.toml | 2 +- src/colour_map.rs | 2 +- src/lib.rs | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index da2464a..69594ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pixsy" -version = "0.72.3" +version = "0.72.4" description = "convert images to Bitsy rooms" authors = ["Max Bradbury "] edition = "2018" diff --git a/src/colour_map.rs b/src/colour_map.rs index 1a0b62e..0293982 100644 --- a/src/colour_map.rs +++ b/src/colour_map.rs @@ -1,4 +1,4 @@ -use image::{Luma, Rgba}; +use image::Rgba; #[derive(Clone, Copy)] pub struct ColourMap { diff --git a/src/lib.rs b/src/lib.rs index 81ec1dd..576a296 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,7 +3,7 @@ use bitsy_parser::game::Game; use bitsy_parser::image::Image; use bitsy_parser::tile::Tile; -use image::{GenericImageView, Pixel, DynamicImage, GenericImage, ImageBuffer}; +use image::{GenericImageView, Pixel, DynamicImage}; use lazy_static::lazy_static; use std::sync::Mutex; use wasm_bindgen::prelude::*; @@ -11,7 +11,6 @@ use wasm_bindgen::prelude::*; mod colour_map; use colour_map::ColourMap; -use image::imageops::FilterType::CatmullRom; const SD: u32 = 8; @@ -261,7 +260,6 @@ pub fn output() -> String { #[cfg(test)] mod test { use crate::{add_room, load_image, load_default_game, output, get_preview}; - use image::Rgba; #[test] fn image_to_base64() {