feat: remove cast completion (#348)

* feat: remove cast completion

* fix: update snapshot
This commit is contained in:
Myriad-Dreamin 2024-06-27 15:42:40 +08:00 committed by GitHub
parent 00ec24e18f
commit a3724bc87f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 77 additions and 181 deletions

View file

@ -2,7 +2,7 @@ use once_cell::sync::OnceCell;
use crate::{
adt::interner::Interned,
analysis::{analyze_dyn_signature, find_definition, Ty},
analysis::{analyze_dyn_signature, find_definition, },
prelude::*,
syntax::{get_check_target, get_deref_target, CheckTarget, ParamTarget},
DocTooltip, LspParamInfo, SemanticRequest,
@ -121,8 +121,7 @@ impl SemanticRequest for SignatureHelpRequest {
label.push_str(&format!(
"{}: {}",
param.name,
ty.or_else(|| param.base_type.as_ref())
.unwrap_or(&Ty::Any)
ty.unwrap_or(&param.base_type)
.describe()
.as_deref()
.unwrap_or("any")