From 77b9c5791acb6090f262d9381f0fef4411378916 Mon Sep 17 00:00:00 2001 From: Yann Hamdaoui Date: Fri, 5 Jan 2024 14:32:21 +0000 Subject: [PATCH] format: don't fail silently on invalid input anymore (#1749) --- core/src/format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/format.rs b/core/src/format.rs index 2f65fcb383..4f6e0cbb9a 100644 --- a/core/src/format.rs +++ b/core/src/format.rs @@ -32,7 +32,7 @@ pub fn format(mut input: impl Read, mut output: impl Write) -> Result<(), Format &grammar, topiary::Operation::Format { skip_idempotence: true, - tolerate_parsing_errors: true, + tolerate_parsing_errors: false, }, ) .map_err(FormatError)