fixed compilation on non-CSR targets

This commit is contained in:
Jose Quesada 2022-12-12 12:26:11 -06:00
parent 5881fb9064
commit 0b11a8dda6
3 changed files with 2 additions and 7 deletions

View file

@ -1,2 +0,0 @@
[build]
# target = "wasm32-unknown-unknown"

View file

@ -1,2 +1,2 @@
[build]
target = "wasm32-unknown-unknown"
# target = "wasm32-unknown-unknown"

View file

@ -14,9 +14,6 @@ use crate::{
};
#[cfg(all(target_arch = "wasm32", feature = "web"))]
use crate::{mount_child, MountKind};
#[cfg(not(all(target_arch = "wasm32", feature = "web")))]
use std::cell::OnceCell;
use cfg_if::cfg_if;
#[cfg(all(target_arch = "wasm32", feature = "web"))]
use leptos_reactive::create_render_effect;
@ -121,7 +118,7 @@ pub struct AnyElement {
pub(crate) id: usize,
}
impl Deref for AnyElement {
impl std::ops::Deref for AnyElement {
type Target = web_sys::HtmlElement;
fn deref(&self) -> &Self::Target {