File tree 2 files changed +5
-5
lines changed
src/tools/rust-analyzer/crates/rust-analyzer/src
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1061,7 +1061,7 @@ pub(crate) fn handle_completion_resolve(
1061
1061
1062
1062
let position = FilePosition { file_id, offset } ;
1063
1063
let Some ( unresolved_completions) = snap. analysis . completions (
1064
- & forced_resolve_completions_config,
1064
+ & & forced_resolve_completions_config,
1065
1065
position,
1066
1066
resolve_data. trigger_character ,
1067
1067
) ?
Original file line number Diff line number Diff line change @@ -448,7 +448,7 @@ impl ClientCapabilities {
448
448
. unwrap_or_default ( )
449
449
}
450
450
451
- pub fn inlay_hint_resolve_support_properties ( & self ) -> FxHashSet < & str > {
451
+ pub fn inlay_hint_resolve_support_properties ( & self ) -> FxHashSet < String > {
452
452
self . 0
453
453
. text_document
454
454
. as_ref ( )
@@ -457,11 +457,11 @@ impl ClientCapabilities {
457
457
. map ( |inlay_resolve| inlay_resolve. properties . iter ( ) )
458
458
. into_iter ( )
459
459
. flatten ( )
460
- . map ( |s| s . as_str ( ) )
460
+ . cloned ( )
461
461
. collect ( )
462
462
}
463
463
464
- pub fn completion_resolve_support_properties ( & self ) -> FxHashSet < & str > {
464
+ pub fn completion_resolve_support_properties ( & self ) -> FxHashSet < String > {
465
465
self . 0
466
466
. text_document
467
467
. as_ref ( )
@@ -471,7 +471,7 @@ impl ClientCapabilities {
471
471
. map ( |resolve_support| resolve_support. properties . iter ( ) )
472
472
. into_iter ( )
473
473
. flatten ( )
474
- . map ( |s| s . as_str ( ) )
474
+ . cloned ( )
475
475
. collect ( )
476
476
}
477
477
You can’t perform that action at this time.
0 commit comments