Browse Source

fix: liveview failing to pass

Jonathan Kelley 3 năm trước cách đây
mục cha
commit
3b4a041c31

+ 2 - 0
packages/liveview/examples/warp.rs

@@ -1,3 +1,5 @@
+#![cfg(feature = "warp")]
+
 use dioxus_core::{Element, LazyNodes, Scope};
 use dioxus_liveview as liveview;
 use warp::ws::Ws;

+ 2 - 0
packages/liveview/src/events.rs

@@ -1,3 +1,5 @@
+#![allow(dead_code)]
+
 //! Convert a serialized event to an event trigger
 
 use std::any::Any;

+ 2 - 0
packages/liveview/src/lib.rs

@@ -1,3 +1,5 @@
+#![allow(dead_code)]
+
 pub(crate) mod events;
 pub mod adapters {
     #[cfg(feature = "warp")]