Skip to content

Commit

Permalink
chore: no const fns with send bounds (#27749)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverb123 authored Jan 21, 2025
1 parent 359ab75 commit e56aead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/batch-import-worker/src/parse/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl FormatConfig {

const NEWLINE_DELIM: u8 = b'\n';

pub const fn newline_delim<T: Send>(
pub fn newline_delim<T: Send>(
skip_blank_lines: bool,
inner: impl Fn(&str) -> Result<T, Error> + Sync,
) -> impl Fn(Vec<u8>) -> Result<Parsed<Vec<T>>, Error> {
Expand Down Expand Up @@ -157,7 +157,7 @@ pub const fn newline_delim<T: Send>(
}
}

pub const fn json_nd<T>(skip_blank_lines: bool) -> impl Fn(Vec<u8>) -> Result<Parsed<Vec<T>>, Error>
pub fn json_nd<T>(skip_blank_lines: bool) -> impl Fn(Vec<u8>) -> Result<Parsed<Vec<T>>, Error>
where
T: DeserializeOwned + Send,
{
Expand Down

0 comments on commit e56aead

Please sign in to comment.