diff --git a/src/image.rs b/src/image.rs index 09343ec..dce465f 100644 --- a/src/image.rs +++ b/src/image.rs @@ -6,7 +6,6 @@ pub struct Image { impl From for Image { #[inline] fn from(string: String) -> Image { - print!("image: \n{}", string); let string = string.replace("NaN", "0"); let string = string.trim(); let lines: Vec<&str> = string.lines().collect(); @@ -15,9 +14,7 @@ impl From for Image { for line in lines { let line = &line[..dimension]; - println!("line: {}", line); for char in line.chars().into_iter() { - println!("Char: {} value: {}", char, match char {'1' => 1, _ => 0}); pixels.push(match char {'1' => 1, _ => 0}); } } @@ -47,7 +44,6 @@ impl ToString for Image { #[inline] pub(crate) fn animation_frames_from_string(string: String) -> Vec { - print!("animation frames: \n{}", string); let frames: Vec<&str> = string.split(">").collect(); frames.iter().map(|&frame| Image::from(frame.to_string())).collect()