Commit db35f1d
committed
fix(segment): suppress mmap dead-code warnings on wasm32
The mmap_budget_used and mmap_budget_limit fields in SegmentReader are
only accessed by the native mmap_view path. Gate them with
#[cfg_attr(target_arch = "wasm32", allow(dead_code))] so wasm32 builds
are warning-clean.1 parent f4d643c commit db35f1d
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| |||
0 commit comments