From a9fac2c1d8839bcee50967b8747979f7506aff23 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 24 Apr 2026 07:38:18 +0000 Subject: [PATCH] refactor(storage): drop single-caller sanitize_filename wrapper `FileSystemStorage::sanitize_filename` was a one-line forwarder to `crate::sanitize_filename` with a single call site in `task_file_path`. The extra method added a layer of indirection without value. Inline the crate-level call. --- crates/onyx-core/src/storage.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/onyx-core/src/storage.rs b/crates/onyx-core/src/storage.rs index 380e757..7f8bc8b 100644 --- a/crates/onyx-core/src/storage.rs +++ b/crates/onyx-core/src/storage.rs @@ -236,12 +236,8 @@ impl FileSystemStorage { Ok(path) } - fn sanitize_filename(name: &str) -> String { - crate::sanitize_filename(name) - } - fn task_file_path(&self, list_dir: &Path, task: &Task) -> PathBuf { - let safe_title = Self::sanitize_filename(&task.title); + let safe_title = crate::sanitize_filename(&task.title); let filename = if safe_title.is_empty() { task.id.to_string() } else {