@@ -38,7 +38,7 @@ use crate::Parser;
3838#[ cfg_attr( not( feature = "debug" ) , allow( unused_mut) ) ]
3939#[ cfg_attr( not( feature = "debug" ) , inline( always) ) ]
4040pub fn trace < I : Stream , O , E : ParserError < I > > (
41- name : impl crate :: lib :: std :: fmt:: Display ,
41+ name : impl core :: fmt:: Display ,
4242 parser : impl Parser < I , O , E > ,
4343) -> impl Parser < I , O , E > {
4444 #[ cfg( feature = "debug" ) ]
@@ -53,7 +53,7 @@ pub fn trace<I: Stream, O, E: ParserError<I>>(
5353
5454#[ cfg_attr( not( feature = "debug" ) , allow( unused_variables) ) ]
5555pub ( crate ) fn trace_result < T , I : Stream , E : ParserError < I > > (
56- name : impl crate :: lib :: std :: fmt:: Display ,
56+ name : impl core :: fmt:: Display ,
5757 res : & Result < T , E > ,
5858) {
5959 #[ cfg( feature = "debug" ) ]
@@ -66,8 +66,8 @@ pub(crate) fn trace_result<T, I: Stream, E: ParserError<I>>(
6666
6767pub ( crate ) struct DisplayDebug < D > ( pub ( crate ) D ) ;
6868
69- impl < D : crate :: lib :: std :: fmt:: Debug > crate :: lib :: std :: fmt:: Display for DisplayDebug < D > {
70- fn fmt ( & self , f : & mut crate :: lib :: std :: fmt:: Formatter < ' _ > ) -> crate :: lib :: std :: fmt:: Result {
69+ impl < D : core :: fmt:: Debug > core :: fmt:: Display for DisplayDebug < D > {
70+ fn fmt ( & self , f : & mut core :: fmt:: Formatter < ' _ > ) -> core :: fmt:: Result {
7171 write ! ( f, "{:?}" , self . 0 )
7272 }
7373}
0 commit comments