Skip to content

Commit

Permalink
changed my mind, let's not add is_registered on macos for now
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed Apr 17, 2024
1 parent 387bc49 commit a0350cb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions plugins/deep-link/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<S: AsRef<str>>(&self, _protocol: S) -> crate::Result<bool> {
Err(crate::Error::UnsupportedPlatform)
}
Expand Down Expand Up @@ -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<S: AsRef<str>>(&self, _protocol: S) -> crate::Result<bool> {
#[cfg(windows)]
{
Expand Down Expand Up @@ -350,9 +350,7 @@ mod imp {
}

#[cfg(target_os = "macos")]
{
Ok("TODO")
}
Err(crate::Error::UnsupportedPlatform)
}
}
}
Expand Down

0 comments on commit a0350cb

Please sign in to comment.