Skip to content

Commit

Permalink
2 again
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeChampion committed Nov 21, 2024
1 parent 1e7aa3b commit e0d7d41
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ wasm-opt = ["-O3", "--enable-bulk-memory"]
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
panic = "abort"
5 changes: 0 additions & 5 deletions pkg/html_rewriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,11 +421,6 @@ function __wbg_get_imports() {
function __wbg_init_memory(imports, memory) {
}

/**
* @param {WebAssembly.Instance} instance
* @param {*} module
* @returns
*/
function __wbg_finalize_init(instance, module) {
wasm = instance.exports;
__wbg_init.__wbindgen_wasm_module = module;
Expand Down
2 changes: 1 addition & 1 deletion src/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ impl Element {
.set_attribute(name, value)
.into_js_result()
}
}
}
8 changes: 6 additions & 2 deletions src/html_rewriter.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
use super::handlers::{ ElementContentHandlers, HandlerJsErrorWrap, IntoNativeHandlers };
use super::handlers::{
ElementContentHandlers,
HandlerJsErrorWrap,
IntoNativeHandlers,
};
use super::*;
use js_sys::{Function as JsFunction, Uint8Array};
use lol_html::errors::RewritingError;
Expand Down Expand Up @@ -120,4 +124,4 @@ impl HTMLRewriter {
.end()
.map_err(rewriting_error_to_js)
}
}
}

0 comments on commit e0d7d41

Please sign in to comment.