Skip to main content

MAX_WARNINGS

Constant MAX_WARNINGS 

Source
pub const MAX_WARNINGS: usize = 1000; // 1_000usize
Expand description

Maximum number of warnings the renderer accumulates per render pass. Re-exported from chordsketch-chordpro::render_result so callers can keep importing chordsketch_render_html::MAX_WARNINGS unchanged (issue #1874). Maximum number of warnings any renderer accumulates for a single render pass (issue #1833). Without a cap, a pathological input such as one million malformed {transpose} lines would push the warnings vector to tens of megabytes. push_warning refuses to exceed this limit and appends a single truncation marker the first time the cap is hit.