File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,9 @@ use crate::errors::{Error, Result};
49
49
use crate :: escape:: { escape, partial_escape, unescape_with} ;
50
50
use crate :: name:: { LocalName , QName } ;
51
51
use crate :: reader:: is_whitespace;
52
- use crate :: utils:: { write_cow_string, CowRef } ;
52
+ use crate :: utils:: write_cow_string;
53
+ #[ cfg( feature = "serialize" ) ]
54
+ use crate :: utils:: CowRef ;
53
55
use attributes:: { Attribute , Attributes } ;
54
56
use std:: mem:: replace;
55
57
@@ -198,6 +200,7 @@ impl<'a> BytesStart<'a> {
198
200
/// - `'a`: Lifetime of the input data from which this event is borrow
199
201
/// - `'e`: Lifetime of the concrete event instance
200
202
// TODO: We should made this is a part of public API, but with safe wrapped for a name
203
+ #[ cfg( feature = "serialize" ) ]
201
204
pub ( crate ) fn raw_name < ' e > ( & ' e self ) -> CowRef < ' a , ' e , [ u8 ] > {
202
205
match self . buf {
203
206
Cow :: Borrowed ( b) => CowRef :: Input ( & b[ ..self . name_len ] ) ,
You can’t perform that action at this time.
0 commit comments