From c482436d05b9d775c63d198625770eadf4cdb23e Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Mon, 23 Feb 2026 15:16:25 -0600 Subject: [PATCH] cleanup: some refactoring in the file module --- src/core/file.rs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/core/file.rs b/src/core/file.rs index 5ae0d53..c0feefe 100644 --- a/src/core/file.rs +++ b/src/core/file.rs @@ -237,13 +237,11 @@ pub fn load(path: impl AsRef) -> Result> { .clone() .unwrap_or_default() .file_name() + && let Some(svg) = slide.text_svg.as_mut() { - if let Some(svg) = slide.text_svg.as_mut() { - svg.path = Some(file.path()); - svg.handle = - Some(Handle::from_path(file.path())) - } - dbg!(&slide); + svg.path = Some(file.path()); + svg.handle = + Some(Handle::from_path(file.path())); } } } @@ -376,10 +374,7 @@ mod test { assert!(false, "Couldn't create svg: {e}"); slide }, - |slide| { - dbg!(&slide); - slide - }, + |slide| slide, ) }) .collect::>();