Skip to content

Commit 4a99166

Browse files
Merge pull request #3159 from kate-goldenring/fix-unsafe-aot-compilation-code
fix: enable compiling when `unsafe-aot-compilation` feat enabled
2 parents db7fd31 + 361511b commit 4a99166

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test: lint test-unit test-integration
2121

2222
.PHONY: lint
2323
lint:
24-
cargo clippy --all --all-targets --features all-tests -- -D warnings
24+
cargo clippy --all --all-targets --features "all-tests unsafe-aot-compilation" -- -D warnings
2525
cargo fmt --all -- --check
2626

2727
.PHONY: lint-rust-examples

crates/trigger/src/loader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl ComponentLoader {
5353
path: &std::path::Path,
5454
) -> anyhow::Result<Component> {
5555
assert!(self.aot_compilation_enabled);
56-
match engine.detect_precompiled_file(path)? {
56+
match wasmtime::Engine::detect_precompiled_file(path)? {
5757
Some(wasmtime::Precompiled::Component) => unsafe {
5858
Component::deserialize_file(engine, path)
5959
},

0 commit comments

Comments
 (0)