mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-11 07:33:01 +02:00
handle the case where 0 or >1 allocs are enabled
In particular this fixes `cargo build --all-features`.
This commit is contained in:
parent
e0c0d51a05
commit
3b05417246
5 changed files with 29 additions and 24 deletions
7
src/alloc/default.rs
Normal file
7
src/alloc/default.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
//! Default allocator with no special features
|
||||
|
||||
/// Always returns the empty string
|
||||
pub(crate) fn memory_stats() -> String { Default::default() }
|
||||
|
||||
/// Always returns the empty string
|
||||
pub(crate) fn memory_usage() -> String { Default::default() }
|
Loading…
Add table
Add a link
Reference in a new issue