mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
@@ -1061,7 +1061,7 @@ pub(crate) fn handle_completion_resolve(
|
||||
|
||||
let position = FilePosition { file_id, offset };
|
||||
let Some(unresolved_completions) = snap.analysis.completions(
|
||||
&forced_resolve_completions_config,
|
||||
&&forced_resolve_completions_config,
|
||||
position,
|
||||
resolve_data.trigger_character,
|
||||
)?
|
||||
|
||||
@@ -448,7 +448,7 @@ pub fn inlay_hints_refresh(&self) -> bool {
|
||||
.unwrap_or_default()
|
||||
}
|
||||
|
||||
pub fn inlay_hint_resolve_support_properties(&self) -> FxHashSet<&str> {
|
||||
pub fn inlay_hint_resolve_support_properties(&self) -> FxHashSet<String> {
|
||||
self.0
|
||||
.text_document
|
||||
.as_ref()
|
||||
@@ -457,11 +457,11 @@ pub fn inlay_hint_resolve_support_properties(&self) -> FxHashSet<&str> {
|
||||
.map(|inlay_resolve| inlay_resolve.properties.iter())
|
||||
.into_iter()
|
||||
.flatten()
|
||||
.map(|s| s.as_str())
|
||||
.cloned()
|
||||
.collect()
|
||||
}
|
||||
|
||||
pub fn completion_resolve_support_properties(&self) -> FxHashSet<&str> {
|
||||
pub fn completion_resolve_support_properties(&self) -> FxHashSet<String> {
|
||||
self.0
|
||||
.text_document
|
||||
.as_ref()
|
||||
@@ -471,7 +471,7 @@ pub fn completion_resolve_support_properties(&self) -> FxHashSet<&str> {
|
||||
.map(|resolve_support| resolve_support.properties.iter())
|
||||
.into_iter()
|
||||
.flatten()
|
||||
.map(|s| s.as_str())
|
||||
.cloned()
|
||||
.collect()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user