File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ impl<'tcx> Body<'tcx> {
305
305
pub fn vars_iter < ' a > ( & ' a self ) -> impl Iterator < Item = Local > + ' a {
306
306
( self . arg_count + 1 ..self . local_decls . len ( ) ) . filter_map ( move |index| {
307
307
let local = Local :: new ( index) ;
308
- self . local_decls [ local] . is_user_variable . is_some ( ) . to_option ( local)
308
+ self . local_decls [ local] . is_user_variable . as_ref ( ) . map ( |_| local)
309
309
} )
310
310
}
311
311
Original file line number Diff line number Diff line change @@ -825,7 +825,7 @@ impl Session {
825
825
}
826
826
827
827
pub fn incr_comp_session_dir_opt ( & self ) -> Option < cell:: Ref < ' _ , PathBuf > > {
828
- self . opts . incremental . is_some ( ) . to_option_with ( | | self . incr_comp_session_dir ( ) )
828
+ self . opts . incremental . as_ref ( ) . map ( |_ | self . incr_comp_session_dir ( ) )
829
829
}
830
830
831
831
pub fn print_perf_stats ( & self ) {
You can’t perform that action at this time.
0 commit comments