@@ -2,13 +2,13 @@ use super::*;
22use cloudevents:: { Event , EventBuilder , EventBuilderV10 } ;
33use serde_json:: { json, Value } ;
44
5- #[ cfg( feature="std" ) ]
5+ use cloudevents:: event:: UrlExtend ;
6+ #[ cfg( feature = "std" ) ]
67use url:: Url ;
7- #[ cfg( not( feature= "std" ) ) ]
8+ #[ cfg( not( feature = "std" ) ) ]
89use String as Url ;
9- use cloudevents:: event:: UrlExtend ;
1010
11- #[ cfg( feature= "std" ) ]
11+ #[ cfg( feature = "std" ) ]
1212pub fn minimal ( ) -> Event {
1313 EventBuilderV10 :: new ( )
1414 . id ( id ( ) )
@@ -27,7 +27,7 @@ pub fn minimal_json() -> Value {
2727 } )
2828}
2929
30- #[ cfg( feature= "std" ) ]
30+ #[ cfg( feature = "std" ) ]
3131pub fn full_no_data ( ) -> Event {
3232 let ( string_ext_name, string_ext_value) = string_extension ( ) ;
3333 let ( bool_ext_name, bool_ext_value) = bool_extension ( ) ;
@@ -64,7 +64,7 @@ pub fn full_no_data_json() -> Value {
6464 } )
6565}
6666
67- #[ cfg( feature= "std" ) ]
67+ #[ cfg( feature = "std" ) ]
6868pub fn full_json_data ( ) -> Event {
6969 let ( string_ext_name, string_ext_value) = string_extension ( ) ;
7070 let ( bool_ext_name, bool_ext_value) = bool_extension ( ) ;
@@ -130,7 +130,7 @@ pub fn full_json_base64_data_json() -> Value {
130130 } )
131131}
132132
133- #[ cfg( feature= "std" ) ]
133+ #[ cfg( feature = "std" ) ]
134134pub fn full_xml_string_data ( ) -> Event {
135135 let ( string_ext_name, string_ext_value) = string_extension ( ) ;
136136 let ( bool_ext_name, bool_ext_value) = bool_extension ( ) ;
@@ -150,7 +150,7 @@ pub fn full_xml_string_data() -> Event {
150150 . unwrap ( )
151151}
152152
153- #[ cfg( feature= "std" ) ]
153+ #[ cfg( feature = "std" ) ]
154154pub fn full_xml_binary_data ( ) -> Event {
155155 let ( string_ext_name, string_ext_value) = string_extension ( ) ;
156156 let ( bool_ext_name, bool_ext_value) = bool_extension ( ) ;
0 commit comments