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_builtin_macros/src | |
| parent | 8751fa1a9abda9fc7ced6b03315efbd82310830d (diff) | |
| download | rust-5bf6a46032b6c746da5a95dc5c6e0ac46ac9b075.tar.gz | |
Replace some `then`s with some `then_some`s
Diffstat (limited to 'compiler/rustc_builtin_macros/src')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/standard_library_imports.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/standard_library_imports.rs b/compiler/rustc_builtin_macros/src/standard_library_imports.rs index f73f20c84a3..e67c0dba685 100644 --- a/compiler/rustc_builtin_macros/src/standard_library_imports.rs +++ b/compiler/rustc_builtin_macros/src/standard_library_imports.rs @@ -62,7 +62,7 @@ pub fn inject( // the one with the prelude. let name = names[0]; - let root = (edition == Edition2015).then(|| kw::PathRoot); + let root = (edition == Edition2015).then_some(kw::PathRoot); let import_path = root .iter() |
