diff options
| author | pml68 <contact@pml68.dev> | 2025-07-24 19:12:56 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-07-24 23:13:50 +0200 |
| commit | 5f4022cb8aa2fb078617e1c166e0e79b80a25d13 (patch) | |
| tree | 8515aff6a21d1498ea70e6264f833fc9c0661bb0 /src/types | |
| parent | feat: better button styling for "unsaved changes" dialog (diff) | |
| download | iced-builder-5f4022cb8aa2fb078617e1c166e0e79b80a25d13.tar.gz | |
feat: make "Copy Code" button appear on hover over the code
Diffstat (limited to 'src/types')
| -rw-r--r-- | src/types/project.rs | 5 |
1 files changed, 1 insertions, 4 deletions
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()), |
