File tree 2 files changed +2
-3
lines changed
src/tools/rust-analyzer/crates
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -214,8 +214,7 @@ impl<'a> SymbolCollector<'a> {
214
214
215
215
fn collect_from_impl ( & mut self , impl_id : ImplId ) {
216
216
let impl_data = self . db . impl_data ( impl_id) ;
217
- let impl_name =
218
- Some ( SmolStr :: new ( impl_data. self_ty . display ( self . db , self . edition ) . to_string ( ) ) ) ;
217
+ let impl_name = Some ( impl_data. self_ty . display ( self . db , self . edition ) . to_smolstr ( ) ) ;
219
218
self . with_container_name ( impl_name, |s| {
220
219
for & assoc_item_id in impl_data. items . iter ( ) {
221
220
s. push_assoc_item ( assoc_item_id)
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ impl RawPattern {
190
190
let mut res = FxHashMap :: default ( ) ;
191
191
for t in & self . tokens {
192
192
if let PatternElement :: Placeholder ( placeholder) = t {
193
- res. insert ( SmolStr :: new ( placeholder. stand_in_name . clone ( ) ) , placeholder. clone ( ) ) ;
193
+ res. insert ( SmolStr :: new ( & placeholder. stand_in_name ) , placeholder. clone ( ) ) ;
194
194
}
195
195
}
196
196
res
You can’t perform that action at this time.
0 commit comments