]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_builtin_macros/src/standard_library_imports.rs
New upstream version 1.69.0+dfsg1
[rustc.git] / compiler / rustc_builtin_macros / src / standard_library_imports.rs
index f73f20c84a39d145911dbff56883d1dca807e565..e67c0dba68597087f4e2d6800646a6ebb61031be 100644 (file)
@@ -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()