about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSlanterns <slanterns.w@gmail.com>2024-08-15 01:22:42 +0800
committerSlanterns <slanterns.w@gmail.com>2024-08-15 01:22:42 +0800
commit14ac0a38db036fbe3620534ee1c142f7092364e5 (patch)
treed1e93c31c7fefb6b25ce591bb77c328fd8b816af
parente2ec11502d077c33650a288d255c3c056bb7232f (diff)
downloadrust-14ac0a38db036fbe3620534ee1c142f7092364e5.tar.gz
rust-14ac0a38db036fbe3620534ee1c142f7092364e5.zip
fix r-a
-rw-r--r--src/tools/rust-analyzer/crates/hir-ty/src/display.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/crates/hir-ty/src/display.rs b/src/tools/rust-analyzer/crates/hir-ty/src/display.rs
index a433ecfd778..f6f90faa4ef 100644
--- a/src/tools/rust-analyzer/crates/hir-ty/src/display.rs
+++ b/src/tools/rust-analyzer/crates/hir-ty/src/display.rs
@@ -1462,7 +1462,7 @@ fn generic_args_sans_defaults<'ga>(
                     // otherwise, if the arg is equal to the param default, hide it (unless the
                     // default is an error which can happen for the trait Self type)
                     #[allow(unstable_name_collisions)]
-                    default_parameters.get(i).is_none_or(|default_parameter| {
+                    IsNoneOr::is_none_or(default_parameters.get(i), |default_parameter| {
                         // !is_err(default_parameter.skip_binders())
                         //     &&
                         arg != &default_parameter.clone().substitute(Interner, &parameters)