@@ -124,12 +124,12 @@ pub trait ProgressReporter: Send + Sync {
124124 fn set_files ( & mut self , files : usize ) ;
125125
126126 /// Report the completion of checking a given file along with its diagnostics.
127- fn report_checked_file ( & self , db : & dyn Db , file : File , diagnostics : & [ Diagnostic ] ) ;
127+ fn report_checked_file ( & self , db : & ProjectDatabase , file : File , diagnostics : & [ Diagnostic ] ) ;
128128
129129 /// Reports settings or IO related diagnostics. The diagnostics
130130 /// can belong to different files or no file at all.
131131 /// But it's never a file for which [`Self::report_checked_file`] gets called.
132- fn report_diagnostics ( & mut self , db : & dyn Db , diagnostics : Vec < Diagnostic > ) ;
132+ fn report_diagnostics ( & mut self , db : & ProjectDatabase , diagnostics : Vec < Diagnostic > ) ;
133133}
134134
135135/// Reporter that collects all diagnostics into a `Vec`.
@@ -149,7 +149,7 @@ impl CollectReporter {
149149
150150impl ProgressReporter for CollectReporter {
151151 fn set_files ( & mut self , _files : usize ) { }
152- fn report_checked_file ( & self , _db : & dyn Db , _file : File , diagnostics : & [ Diagnostic ] ) {
152+ fn report_checked_file ( & self , _db : & ProjectDatabase , _file : File , diagnostics : & [ Diagnostic ] ) {
153153 if diagnostics. is_empty ( ) {
154154 return ;
155155 }
@@ -160,7 +160,7 @@ impl ProgressReporter for CollectReporter {
160160 . extend ( diagnostics. iter ( ) . map ( Clone :: clone) ) ;
161161 }
162162
163- fn report_diagnostics ( & mut self , _db : & dyn Db , diagnostics : Vec < Diagnostic > ) {
163+ fn report_diagnostics ( & mut self , _db : & ProjectDatabase , diagnostics : Vec < Diagnostic > ) {
164164 self . 0 . get_mut ( ) . unwrap ( ) . extend ( diagnostics) ;
165165 }
166166}
0 commit comments