From e56aead470cf544fd4e7b88a33aef2625a2f8fc6 Mon Sep 17 00:00:00 2001 From: Oliver Browne Date: Tue, 21 Jan 2025 22:54:50 +0200 Subject: [PATCH] chore: no const fns with send bounds (#27749) --- rust/batch-import-worker/src/parse/format.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/batch-import-worker/src/parse/format.rs b/rust/batch-import-worker/src/parse/format.rs index 088dd1a7e185d..8886205eaa47f 100644 --- a/rust/batch-import-worker/src/parse/format.rs +++ b/rust/batch-import-worker/src/parse/format.rs @@ -83,7 +83,7 @@ impl FormatConfig { const NEWLINE_DELIM: u8 = b'\n'; -pub const fn newline_delim( +pub fn newline_delim( skip_blank_lines: bool, inner: impl Fn(&str) -> Result + Sync, ) -> impl Fn(Vec) -> Result>, Error> { @@ -157,7 +157,7 @@ pub const fn newline_delim( } } -pub const fn json_nd(skip_blank_lines: bool) -> impl Fn(Vec) -> Result>, Error> +pub fn json_nd(skip_blank_lines: bool) -> impl Fn(Vec) -> Result>, Error> where T: DeserializeOwned + Send, {