From 56235343c739655efe9106f5fc0e29d318853259 Mon Sep 17 00:00:00 2001 From: Erwan Vivien Date: Mon, 30 Oct 2023 17:40:30 +0100 Subject: [PATCH] fix: cargo format from #44 --- src/convert/image.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/convert/image.rs b/src/convert/image.rs index b4b953d..629d0f7 100644 --- a/src/convert/image.rs +++ b/src/convert/image.rs @@ -22,8 +22,7 @@ //! # } //! ``` -use std::error::Error; -use std::fmt::{Formatter, Write}; +use std::fmt::Formatter; use std::io; use crate::QRCode; @@ -61,7 +60,7 @@ impl std::fmt::Display for ImageError { match self { ImageError::IoError(io_err) => f.write_str(io_err.to_string().as_str()), ImageError::ImageError(error) => f.write_str(error.as_str()), - ImageError::EncodingError(error) => f.write_str(error.as_str()) + ImageError::EncodingError(error) => f.write_str(error.as_str()), } } }