Skip to content

Commit

Permalink
Fix enum for gloo-history.
Browse files Browse the repository at this point in the history
  • Loading branch information
langyo committed Dec 10, 2023
1 parent 1fc95e0 commit 5a7be98
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/yew-router/src/navigator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ pub type NavigationResult<T> = HistoryResult<T>;
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum NavigatorKind {
/// Browser History.
#[cfg(not(target_os = "wasi"))]
Browser,
/// Hash History.
Hash,
Expand Down Expand Up @@ -151,9 +150,7 @@ impl Navigator {
/// Returns the Navigator kind.
pub fn kind(&self) -> NavigatorKind {
match &self.inner {
#[cfg(not(target_os = "wasi"))]
AnyHistory::Browser(_) => NavigatorKind::Browser,
#[cfg(not(target_os = "wasi"))]
AnyHistory::Hash(_) => NavigatorKind::Hash,
AnyHistory::Memory(_) => NavigatorKind::Memory,
}
Expand Down

0 comments on commit 5a7be98

Please sign in to comment.