Skip to content

Commit 086c8eb

Browse files
committed
cleanup some debugging checks
1 parent 3fc15c4 commit 086c8eb

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use std::slice;
1717
use std::str;
1818
use std::sync::Once;
1919

20-
pub(crate) static INIT_LIBXML_PARSER: Once = Once::new();
20+
static INIT_LIBXML_PARSER: Once = Once::new();
2121

2222
enum XmlParserOption {
2323
Recover = 1,

src/tree/document.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,6 @@ impl fmt::Display for Document {
8484
impl 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();

0 commit comments

Comments
 (0)