Skip to content

Commit

Permalink
chore: work around wasm-bindgen breakage (#3498)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj authored Jan 17, 2025
1 parent fdd5671 commit 035586e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.

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

4 changes: 2 additions & 2 deletions examples/axum_js_ssr/src/hljs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ mod csr {
extern "C" {
type HighlightOptions;

#[wasm_bindgen(catch, js_namespace = default, js_name = highlight)]
#[wasm_bindgen(catch, js_namespace = defaultMod, js_name = highlight)]
fn highlight_lang(
code: String,
options: Object,
) -> Result<Object, JsValue>;

#[wasm_bindgen(js_namespace = default, js_name = highlightAll)]
#[wasm_bindgen(js_namespace = defaultMod, js_name = highlightAll)]
pub fn highlight_all();
}

Expand Down

0 comments on commit 035586e

Please sign in to comment.