From 362cf775f3635f21cac5c3d224b0804a394400bd Mon Sep 17 00:00:00 2001 From: Darkhan Kubigenov Date: Fri, 1 Nov 2024 23:55:53 +0000 Subject: [PATCH] Replace field access with function call to is_in_code_block There is a breaking change in the pulldown-cmark-to-cmark which replaced the boolean with the function call. --- i18n-helpers/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n-helpers/src/lib.rs b/i18n-helpers/src/lib.rs index d5258d5e..7d1b3d45 100644 --- a/i18n-helpers/src/lib.rs +++ b/i18n-helpers/src/lib.rs @@ -133,7 +133,7 @@ pub fn extract_events<'a>(text: &'a str, state: Option>) -> Vec<(usize // If we're in a code block, we disable the normal parsing and // return lines of text. This matches the behavior of the // parser in this case. - Some(state) if state.is_in_code_block => text + Some(state) if state.is_in_code_block() => text .split_inclusive('\n') .enumerate() .map(|(idx, line)| (idx + 1, Event::Text(line.into())))