File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/tools/rust-analyzer/crates Expand file tree Collapse file tree 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> {
214214
215215 fn collect_from_impl ( & mut self , impl_id : ImplId ) {
216216 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 ( ) ) ;
219218 self . with_container_name ( impl_name, |s| {
220219 for & assoc_item_id in impl_data. items . iter ( ) {
221220 s. push_assoc_item ( assoc_item_id)
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ impl RawPattern {
190190 let mut res = FxHashMap :: default ( ) ;
191191 for t in & self . tokens {
192192 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 ( ) ) ;
194194 }
195195 }
196196 res
You can’t perform that action at this time.
0 commit comments