From 327a677a7c3270bab0046bcabd8d60eebbcce178 Mon Sep 17 00:00:00 2001 From: Skgland Date: Thu, 30 Apr 2026 19:02:27 +0200 Subject: [PATCH] use a function rather than a closure --- src/parser/char_reader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/char_reader.rs b/src/parser/char_reader.rs index caffc7c1..334a75f5 100644 --- a/src/parser/char_reader.rs +++ b/src/parser/char_reader.rs @@ -135,7 +135,7 @@ impl CharRead for CharReader { Err(e) => return Some(Err(e)), } - let bad_bytes_error = |buf: &[u8]| { + fn bad_bytes_error(buf: &[u8]) -> std::io::Error { // If we have 4 bytes that still don't make up // a valid code point, then we have garbage. -- 2.54.0