Skip to content

Commit

Permalink
whoops, const
Browse files Browse the repository at this point in the history
  • Loading branch information
jkelleyrtp committed Feb 13, 2025
1 parent c1eec18 commit 4d1867b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wasm-split/wasm-split/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl<Args, Ret> LazyLoader<Args, Ret> {
}

/// Create a new lazy loader that is already resolved.
pub fn preloaded(f: fn(Args) -> Ret) -> Self {
pub const fn preloaded(f: fn(Args) -> Ret) -> Self {
let imported =
unsafe { std::mem::transmute::<fn(Args) -> Ret, unsafe extern "C" fn(Args) -> Ret>(f) };

Expand Down

0 comments on commit 4d1867b

Please sign in to comment.