From 34cf0af0299e6767a6d19228b928b201034688fa Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Sun, 19 Jan 2025 16:31:53 +0200 Subject: [PATCH] chore: revert should_disable_comments behavior Avoid behavioral changes in the Context refactoring. --- prost-build/src/context.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/prost-build/src/context.rs b/prost-build/src/context.rs index 27cc5f8c8..f404da687 100644 --- a/prost-build/src/context.rs +++ b/prost-build/src/context.rs @@ -243,8 +243,9 @@ impl<'a> Context<'a> { } else { self.config .disable_comments - .get_first(fq_message_name) - .is_some() + .get(fq_message_name) + .next() + .is_none() } }