From a0350cbce100f920abff88f55fb1d68e908e42cf Mon Sep 17 00:00:00 2001 From: fabianlars Date: Wed, 17 Apr 2024 18:04:24 +0200 Subject: [PATCH] changed my mind, let's not add is_registered on macos for now --- plugins/deep-link/src/lib.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/deep-link/src/lib.rs b/plugins/deep-link/src/lib.rs index 4092b4fc3..86d02246c 100644 --- a/plugins/deep-link/src/lib.rs +++ b/plugins/deep-link/src/lib.rs @@ -123,7 +123,7 @@ mod imp { /// /// ## Platform-specific: /// - /// - **Android / iOS**: Unsupported, will return [`Error::UnsupportedPlatform`](`crate::Error::UnsupportedPlatform`). + /// - **macOS / Android / iOS**: Unsupported, will return [`Error::UnsupportedPlatform`](`crate::Error::UnsupportedPlatform`). pub fn is_registered>(&self, _protocol: S) -> crate::Result { Err(crate::Error::UnsupportedPlatform) } @@ -311,7 +311,7 @@ mod imp { /// /// ## Platform-specific: /// - /// - **Android / iOS**: Unsupported, will return [`Error::UnsupportedPlatform`](`crate::Error::UnsupportedPlatform`). + /// - **macOS / Android / iOS**: Unsupported, will return [`Error::UnsupportedPlatform`](`crate::Error::UnsupportedPlatform`). pub fn is_registered>(&self, _protocol: S) -> crate::Result { #[cfg(windows)] { @@ -350,9 +350,7 @@ mod imp { } #[cfg(target_os = "macos")] - { - Ok("TODO") - } + Err(crate::Error::UnsupportedPlatform) } } }