Revert "Less clones"

This reverts commit b82c5ceba8.
This commit is contained in:
Kirill Bulatov 2024-11-25 23:33:04 +02:00
parent fac56d731a
commit 9ec2404cf8
2 changed files with 5 additions and 5 deletions

View file

@ -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,
)?

View file

@ -448,7 +448,7 @@ impl ClientCapabilities {
.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 @@ impl ClientCapabilities {
.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 @@ impl ClientCapabilities {
.map(|resolve_support| resolve_support.properties.iter())
.into_iter()
.flatten()
.map(|s| s.as_str())
.cloned()
.collect()
}