Skip to content

Commit

Permalink
fix release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj committed Nov 22, 2024
1 parent 1328976 commit 62694fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 3 additions & 1 deletion tachys/src/html/element/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#[cfg(debug_assertions)]
use crate::hydration::set_currently_hydrating;
use crate::{
html::attribute::Attribute,
hydration::{failed_to_cast_element, set_currently_hydrating, Cursor},
hydration::{failed_to_cast_element, Cursor},
renderer::{CastFrom, Rndr},
ssr::StreamBuilder,
view::{
Expand Down
8 changes: 3 additions & 5 deletions tachys/src/hydration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ use crate::{
renderer::{CastFrom, Rndr},
view::{Position, PositionState},
};
use std::{
cell::{Cell, RefCell},
panic::Location,
rc::Rc,
};
#[cfg(debug_assertions)]
use std::cell::Cell;
use std::{cell::RefCell, panic::Location, rc::Rc};
use web_sys::{Comment, Element, Node, Text};

/// Hydration works by walking over the DOM, adding interactivity as needed.
Expand Down

0 comments on commit 62694fa

Please sign in to comment.