@@ -2552,7 +2552,7 @@ macro_rules! _impl_for_config_data {
25522552 $( $doc) *
25532553 #[ allow( non_snake_case) ]
25542554 $vis fn $field( & self , source_root: Option <SourceRootId >) -> & $ty {
2555- let mut source_root = source_root;
2555+ let mut source_root = source_root. as_ref ( ) ;
25562556 while let Some ( sr) = source_root {
25572557 if let Some ( ( file, _) ) = self . ratoml_file. get( & sr) {
25582558 match file {
@@ -2568,7 +2568,7 @@ macro_rules! _impl_for_config_data {
25682568 }
25692569 }
25702570 }
2571- source_root = self . source_root_parent_map. get( & sr) . copied ( ) ;
2571+ source_root = self . source_root_parent_map. get( & sr) ;
25722572 }
25732573
25742574 if let Some ( v) = self . client_config. 0 . local. $field. as_ref( ) {
@@ -2596,7 +2596,7 @@ macro_rules! _impl_for_config_data {
25962596 $( $doc) *
25972597 #[ allow( non_snake_case) ]
25982598 $vis fn $field( & self , source_root : Option <SourceRootId >) -> & $ty {
2599- let mut source_root = source_root;
2599+ let mut source_root = source_root. as_ref ( ) ;
26002600 while let Some ( sr) = source_root {
26012601 if let Some ( ( file, _) ) = self . ratoml_file. get( & sr) {
26022602 match file {
@@ -2609,7 +2609,7 @@ macro_rules! _impl_for_config_data {
26092609 }
26102610 }
26112611
2612- source_root = self . source_root_parent_map. get( & sr) . copied ( ) ;
2612+ source_root = self . source_root_parent_map. get( & sr) ;
26132613 }
26142614
26152615 if let Some ( v) = self . client_config. 0 . global. $field. as_ref( ) {
0 commit comments