diff --git a/src/ascii_manipulation.rs b/src/ascii_manipulation.rs index 562478c..3b35379 100644 --- a/src/ascii_manipulation.rs +++ b/src/ascii_manipulation.rs @@ -1,5 +1,5 @@ use std::process::exit; -use image::{DynamicImage, GenericImageView, imageops, Rgba}; +use image::{DynamicImage, GenericImageView, Rgba}; use log::error; use crate::model_rgb_ascii::Ascii; @@ -43,7 +43,7 @@ pub fn to_custom_ascii(char_map: String, image: DynamicImage) -> Vec> to_ascii(char_map, image) } -pub fn to_braille_ascii(mut image: DynamicImage, threshold: u8) -> Vec> { +pub fn to_braille_ascii(image: DynamicImage, threshold: u8) -> Vec> { let mut str: Vec = Vec::new(); let mut out: Vec> = Vec::new(); diff --git a/src/image_manipulation.rs b/src/image_manipulation.rs index bfbbb82..fee4141 100644 --- a/src/image_manipulation.rs +++ b/src/image_manipulation.rs @@ -1,5 +1,5 @@ use termion::terminal_size; -use log::{debug, error, trace}; +use log::{debug, error}; use std::process::exit; use std::path::PathBuf; use image::DynamicImage; @@ -19,6 +19,7 @@ fn get_terminal_size() -> (u32, u32) { } pub fn resize_image(img: DynamicImage, full: bool, braille: bool, opt_w: Option) -> DynamicImage { + //compiler complains that these v values are never read; this is true, however they are necessary because otherwise the program simply will not compile. let (mut w, mut h) = (1,1); let (max_w, max_h) = get_terminal_size(); if full {