Skip to main content

format_source

Function format_source 

Source
pub fn format_source(
    source: &str,
    opts: &FormatOptions,
) -> Result<String, FormatError>
Expand description

Format a Bynk source string. On parse failure, returns the original source unchanged is not this function’s responsibility — callers (LSP, CLI) decide how to handle parse failure. Here we surface the errors so the caller can do so.