mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
fixed compilation on non-CSR targets
This commit is contained in:
parent
5881fb9064
commit
0b11a8dda6
3 changed files with 2 additions and 7 deletions
|
@ -1,2 +0,0 @@
|
|||
[build]
|
||||
# target = "wasm32-unknown-unknown"
|
|
@ -1,2 +1,2 @@
|
|||
[build]
|
||||
target = "wasm32-unknown-unknown"
|
||||
# target = "wasm32-unknown-unknown"
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue