@@ -2,13 +2,13 @@ use super::*;
2
2
use cloudevents:: { Event , EventBuilder , EventBuilderV10 } ;
3
3
use serde_json:: { json, Value } ;
4
4
5
- #[ cfg( feature="std" ) ]
5
+ use cloudevents:: event:: UrlExtend ;
6
+ #[ cfg( feature = "std" ) ]
6
7
use url:: Url ;
7
- #[ cfg( not( feature= "std" ) ) ]
8
+ #[ cfg( not( feature = "std" ) ) ]
8
9
use String as Url ;
9
- use cloudevents:: event:: UrlExtend ;
10
10
11
- #[ cfg( feature= "std" ) ]
11
+ #[ cfg( feature = "std" ) ]
12
12
pub fn minimal ( ) -> Event {
13
13
EventBuilderV10 :: new ( )
14
14
. id ( id ( ) )
@@ -27,7 +27,7 @@ pub fn minimal_json() -> Value {
27
27
} )
28
28
}
29
29
30
- #[ cfg( feature= "std" ) ]
30
+ #[ cfg( feature = "std" ) ]
31
31
pub fn full_no_data ( ) -> Event {
32
32
let ( string_ext_name, string_ext_value) = string_extension ( ) ;
33
33
let ( bool_ext_name, bool_ext_value) = bool_extension ( ) ;
@@ -64,7 +64,7 @@ pub fn full_no_data_json() -> Value {
64
64
} )
65
65
}
66
66
67
- #[ cfg( feature= "std" ) ]
67
+ #[ cfg( feature = "std" ) ]
68
68
pub fn full_json_data ( ) -> Event {
69
69
let ( string_ext_name, string_ext_value) = string_extension ( ) ;
70
70
let ( bool_ext_name, bool_ext_value) = bool_extension ( ) ;
@@ -130,7 +130,7 @@ pub fn full_json_base64_data_json() -> Value {
130
130
} )
131
131
}
132
132
133
- #[ cfg( feature= "std" ) ]
133
+ #[ cfg( feature = "std" ) ]
134
134
pub fn full_xml_string_data ( ) -> Event {
135
135
let ( string_ext_name, string_ext_value) = string_extension ( ) ;
136
136
let ( bool_ext_name, bool_ext_value) = bool_extension ( ) ;
@@ -150,7 +150,7 @@ pub fn full_xml_string_data() -> Event {
150
150
. unwrap ( )
151
151
}
152
152
153
- #[ cfg( feature= "std" ) ]
153
+ #[ cfg( feature = "std" ) ]
154
154
pub fn full_xml_binary_data ( ) -> Event {
155
155
let ( string_ext_name, string_ext_value) = string_extension ( ) ;
156
156
let ( bool_ext_name, bool_ext_value) = bool_extension ( ) ;
0 commit comments