@@ -892,7 +892,6 @@ impl Config {
892
892
SnippetScopeDef :: Type => SnippetScope :: Type ,
893
893
SnippetScopeDef :: Item => SnippetScope :: Item ,
894
894
} ;
895
- #[ allow( clippy:: single_match) ]
896
895
match Snippet :: new (
897
896
& def. prefix ,
898
897
& def. postfix ,
@@ -2833,7 +2832,7 @@ fn get_field<T: DeserializeOwned>(
2833
2832
} )
2834
2833
}
2835
2834
2836
- fn get_field_toml < T : DeserializeOwned > (
2835
+ fn get_field_toml < T : DeserializeOwned + fmt :: Debug > (
2837
2836
toml : & toml:: Table ,
2838
2837
error_sink : & mut Vec < ( String , toml:: de:: Error ) > ,
2839
2838
field : & ' static str ,
@@ -2847,12 +2846,17 @@ fn get_field_toml<T: DeserializeOwned>(
2847
2846
. filter_map ( move |field| {
2848
2847
let mut pointer = field. replace ( '_' , "/" ) ;
2849
2848
pointer. insert ( 0 , '/' ) ;
2850
- toml_pointer ( toml, & pointer)
2851
- . map ( |it| <_ >:: deserialize ( it. clone ( ) ) . map_err ( |e| ( e, pointer) ) )
2849
+ toml_pointer ( toml, & pointer) . map ( |it| {
2850
+ dbg ! ( & pointer, std:: any:: type_name:: <T >( ) ) ;
2851
+ <_ >:: deserialize ( it. clone ( ) ) . map_err ( |e| ( e, pointer) )
2852
+ } )
2852
2853
} )
2853
2854
. find ( Result :: is_ok)
2854
2855
. and_then ( |res| match res {
2855
- Ok ( it) => Some ( it) ,
2856
+ Ok ( it) => {
2857
+ dbg ! ( & it) ;
2858
+ Some ( it)
2859
+ }
2856
2860
Err ( ( e, pointer) ) => {
2857
2861
tracing:: warn!( "Failed to deserialize config field at {}: {:?}" , pointer, e) ;
2858
2862
error_sink. push ( ( pointer, e) ) ;
0 commit comments