File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ impl<'a> SourceCache<'a> {
158158impl Cache < FileId > for SourceCache < ' _ > {
159159 type Storage = String ;
160160
161- fn fetch ( & mut self , id : & FileId ) -> Result < & ariadne:: Source , Box < dyn std:: fmt:: Debug + ' _ > > {
161+ fn fetch ( & mut self , id : & FileId ) -> Result < & ariadne:: Source , impl std:: fmt:: Debug > {
162162 let source = match self . cache . entry ( * id) {
163163 Entry :: Occupied ( entry) => entry. into_mut ( ) ,
164164 Entry :: Vacant ( entry) => {
@@ -170,10 +170,10 @@ impl Cache<FileId> for SourceCache<'_> {
170170 entry. insert ( source)
171171 }
172172 } ;
173- Ok ( source)
173+ Ok :: < _ , Box < dyn std :: fmt :: Debug > > ( source)
174174 }
175175
176- fn display < ' a > ( & self , id : & ' a FileId ) -> Option < Box < dyn std:: fmt:: Display + ' a > > {
176+ fn display < ' a > ( & self , id : & ' a FileId ) -> Option < impl std:: fmt:: Display + ' a > {
177177 Some ( Box :: new ( format ! ( "{id:?}" ) ) )
178178 }
179179}
You can’t perform that action at this time.
0 commit comments