File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ mod vcpkg_dep {
115
115
pub fn vcpkg_find_libxml2 ( ) -> Option < ProbedLib > {
116
116
if let Ok ( metadata) = vcpkg:: Config :: new ( )
117
117
. find_package ( "libxml2" ) {
118
- Some ( ProbedLib { version : vcpkg_version ( ) , include_paths : dbg ! ( metadata) . include_paths } )
118
+ Some ( ProbedLib { version : vcpkg_version ( ) , include_paths : metadata. include_paths } )
119
119
} else {
120
120
None
121
121
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ use std::slice;
17
17
use std:: str;
18
18
use std:: sync:: Once ;
19
19
20
- pub ( crate ) static INIT_LIBXML_PARSER : Once = Once :: new ( ) ;
20
+ static INIT_LIBXML_PARSER : Once = Once :: new ( ) ;
21
21
22
22
enum XmlParserOption {
23
23
Recover = 1 ,
Original file line number Diff line number Diff line change @@ -84,10 +84,6 @@ impl fmt::Display for Document {
84
84
impl Document {
85
85
/// Creates a new empty libxml2 document
86
86
pub fn new ( ) -> Result < Self , ( ) > {
87
- // initialize the parser context
88
- crate :: parser:: INIT_LIBXML_PARSER . call_once ( || unsafe {
89
- crate :: bindings:: xmlInitParser ( ) ;
90
- } ) ;
91
87
unsafe {
92
88
let c_version = CString :: new ( "1.0" ) . unwrap ( ) ;
93
89
let c_version_bytes = c_version. as_bytes ( ) ;
You can’t perform that action at this time.
0 commit comments