From 07488dbf6c916d633efd86648c02bc5f7203834b Mon Sep 17 00:00:00 2001 From: Zefanja Jobse Date: Fri, 27 Oct 2023 13:10:07 +0200 Subject: [PATCH] fix a issue with cargo clippy --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 2dca210..7c8aa01 100644 --- a/src/main.rs +++ b/src/main.rs @@ -333,7 +333,7 @@ pub async fn gen_img(small_mode: &str, map_image: &str) -> Result { (img_size.y / 4.8) as i32, scale, &font, - &small_mode[..], + small_mode, ); img2.save("./map_mode.jpg")?;