From cdeee3e2df27c4f588a7acf2db609022688c0941 Mon Sep 17 00:00:00 2001 From: Thomas KEMKEMIAN Date: Fri, 27 Feb 2026 01:27:27 +0100 Subject: [PATCH] fix: wrap closure in parentheses to resolve clippy warning --- src/v2_parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v2_parser.rs b/src/v2_parser.rs index 8e3c7de..e663063 100644 --- a/src/v2_parser.rs +++ b/src/v2_parser.rs @@ -382,12 +382,12 @@ fn base_node(input: &mut Input<'_>) -> PResult { // _both_ the error message for a string/ident parser error _and_ the error // message for a node name being expected. if !name_is_valid { - resume_after_cut(|input: &mut Input<'_>| -> PResult<()> { + resume_after_cut((|input: &mut Input<'_>| -> PResult<()> { Err(ErrMode::Cut(KdlParseError { span: Some(span_from_checkpoint(input, &_before_ident)), ..Default::default() })) - }.context(cx().msg("Found invalid node name") + }).context(cx().msg("Found invalid node name") .lbl("node name") .hlp("This can be any string type, including a quoted, raw, or multiline string, as well as a plain identifier string.")), empty).parse_next(input)?;