From 5f4022cb8aa2fb078617e1c166e0e79b80a25d13 Mon Sep 17 00:00:00 2001 From: pml68 Date: Thu, 24 Jul 2025 19:12:56 +0200 Subject: feat: make "Copy Code" button appear on hover over the code --- src/types/project.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/types') diff --git a/src/types/project.rs b/src/types/project.rs index 5bd986f..13f84eb 100644 --- a/src/types/project.rs +++ b/src/types/project.rs @@ -1,4 +1,3 @@ -use std::io; use std::path::{Path, PathBuf}; extern crate fxhash; @@ -143,9 +142,7 @@ impl State {{ match rustfmt.format_str(&app_code) { Ok(code) => return Ok(code), // rustfmt is missing, that's fine, we fall back to manual formatting - Err(rust_format::Error::IOError(err)) - if err.kind() == io::ErrorKind::NotFound => - { + Err(rust_format::Error::IOError(_)) => { return Ok(app_code); } Err(err) => return Err(err.into()), -- cgit v1.2.3