Fix macOS build (#944)

Closes #921
This commit is contained in:
Joshua Megnauth 2025-04-22 10:13:43 -04:00 committed by GitHub
parent 90fc680666
commit 63176a1e2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 } => {