summaryrefslogtreecommitdiff
path: root/compiler/rustc_builtin_macros/src
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_builtin_macros/src
parent8751fa1a9abda9fc7ced6b03315efbd82310830d (diff)
downloadrust-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.rs2
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()