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 {
115115 pub fn vcpkg_find_libxml2 ( ) -> Option < ProbedLib > {
116116 if let Ok ( metadata) = vcpkg:: Config :: new ( )
117117 . 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 } )
119119 } else {
120120 None
121121 }
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ use std::slice;
1717use std:: str;
1818use std:: sync:: Once ;
1919
20- pub ( crate ) static INIT_LIBXML_PARSER : Once = Once :: new ( ) ;
20+ static INIT_LIBXML_PARSER : Once = Once :: new ( ) ;
2121
2222enum XmlParserOption {
2323 Recover = 1 ,
Original file line number Diff line number Diff line change @@ -84,10 +84,6 @@ impl fmt::Display for Document {
8484impl Document {
8585 /// Creates a new empty libxml2 document
8686 pub fn new ( ) -> Result < Self , ( ) > {
87- // initialize the parser context
88- crate :: parser:: INIT_LIBXML_PARSER . call_once ( || unsafe {
89- crate :: bindings:: xmlInitParser ( ) ;
90- } ) ;
9187 unsafe {
9288 let c_version = CString :: new ( "1.0" ) . unwrap ( ) ;
9389 let c_version_bytes = c_version. as_bytes ( ) ;
You can’t perform that action at this time.
0 commit comments