Skip to content

Commit

Permalink
restore debug information
Browse files Browse the repository at this point in the history
  • Loading branch information
rambip committed Dec 3, 2023
1 parent aad3c98 commit a98fb55
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ rust-web-markdown = { git = "https://github.com/rambip/rust-web-markdown/" }
wasm-bindgen="=0.2.87"

[features]

default = []
debug = []
debug = ["rust-web-markdown/debug"]


[workspace]
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ impl<'a> Context<'a, 'static> for &'a __MdProps {
}

#[cfg(not(feature="debug"))]
fn send_debug_info(self, _info: Vec<String>) {
fn send_debug_info(self, info: Vec<String>) {
let set_debug_info = use_context::<debug::EventInfo>();
set_debug_info.set(info)
}

fn el_with_attributes(
Expand Down

0 comments on commit a98fb55

Please sign in to comment.