From 63176a1e2a942c7d2f22999f93fc963e2f8039c3 Mon Sep 17 00:00:00 2001 From: Joshua Megnauth <48846352+joshuamegnauth54@users.noreply.github.com> Date: Tue, 22 Apr 2025 10:13:43 -0400 Subject: [PATCH] Fix macOS build (#944) Closes #921 --- src/operation/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operation/mod.rs b/src/operation/mod.rs index 3941142..260d385 100644 --- a/src/operation/mod.rs +++ b/src/operation/mod.rs @@ -1070,7 +1070,7 @@ impl Operation { #[cfg(target_os = "macos")] Self::Restore { .. } => { // TODO: add support for macos - return Err("Restoring from trash is not supported on macos".to_string()); + return OperationError::from_str("Restoring from trash is not supported on macos"); } #[cfg(not(target_os = "macos"))] Self::Restore { items } => {