diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-02-15 17:39:43 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-02-16 15:26:03 +0000 |
| commit | 5bf6a46032b6c746da5a95dc5c6e0ac46ac9b075 (patch) | |
| tree | 6567488546972f2ee2ee3ac91c0e22e794c51ffc /compiler/rustc_parse_format/src | |
| parent | 8751fa1a9abda9fc7ced6b03315efbd82310830d (diff) | |
| download | rust-5bf6a46032b6c746da5a95dc5c6e0ac46ac9b075.tar.gz rust-5bf6a46032b6c746da5a95dc5c6e0ac46ac9b075.zip | |
Replace some `then`s with some `then_some`s
Diffstat (limited to 'compiler/rustc_parse_format/src')
| -rw-r--r-- | compiler/rustc_parse_format/src/lib.rs | 2 |
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) { |
