From e1b6efe204be93dda4a60f3aa2e5cf4453a7968c Mon Sep 17 00:00:00 2001 From: SkeletonGamer <779146+SkeletonGamer@users.noreply.github.com> Date: Fri, 10 Jul 2026 16:10:46 +0200 Subject: [PATCH] fix: replace an if/else block with `?` for clippy 1.97 `clippy::question_mark` started flagging this in Rust 1.97, and CI runs clippy from stable with `-D warnings`, so the check now fails on master. --- src/source/from_iter.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/source/from_iter.rs b/src/source/from_iter.rs index 2b4544ec2..d44251a05 100644 --- a/src/source/from_iter.rs +++ b/src/source/from_iter.rs @@ -53,11 +53,7 @@ where } } - if let Some(src) = self.iterator.next() { - self.current_source = Some(src); - } else { - return None; - } + self.current_source = Some(self.iterator.next()?); } }