summaryrefslogtreecommitdiff
path: root/compiler/rustc_parse_format
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2023-02-15 17:39:43 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2023-02-16 15:26:03 +0000
commit5bf6a46032b6c746da5a95dc5c6e0ac46ac9b075 (patch)
tree6567488546972f2ee2ee3ac91c0e22e794c51ffc /compiler/rustc_parse_format
parent8751fa1a9abda9fc7ced6b03315efbd82310830d (diff)
downloadrust-5bf6a46032b6c746da5a95dc5c6e0ac46ac9b075.tar.gz
Replace some `then`s with some `then_some`s
Diffstat (limited to 'compiler/rustc_parse_format')
-rw-r--r--compiler/rustc_parse_format/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse_format/src/lib.rs b/compiler/rustc_parse_format/src/lib.rs
index 2a86738b528..8a3cedfee79 100644
--- a/compiler/rustc_parse_format/src/lib.rs
+++ b/compiler/rustc_parse_format/src/lib.rs
@@ -835,7 +835,7 @@ impl<'a> Parser<'a> {
);
}
- found.then(|| cur)
+ found.then_some(cur)
}
fn suggest_format(&mut self) {