Skip to content

Commit

Permalink
fix: hoist use above global allocators
Browse files Browse the repository at this point in the history
Signed-off-by: Martijn Swaagman <martijn@swaagman.online>
  • Loading branch information
Swaagie committed Jan 31, 2022
1 parent abe7862 commit b692cfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/allocator.rs
Expand Up @@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use std::mem::MaybeUninit;

#[cfg(feature = "wee-alloc")]
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

use std::mem::MaybeUninit;

#[cfg_attr(
all(target_arch = "wasm32", target_os = "unknown"),
export_name = "malloc"
Expand Down

0 comments on commit b692cfc

Please sign in to comment.