We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9d1924 commit f9f23b7Copy full SHA for f9f23b7
build.rs
@@ -2,9 +2,7 @@ extern crate pkg_config;
2
use pkg_config::find_library;
3
4
fn main() {
5
- if find_library("libxslt").is_ok() {
6
- return;
7
- } else {
+ if find_library("libxslt").is_err() {
8
panic!("Could not find libxslt using pkg-config");
9
}
10
// // The bindgen::Builder is the main entry point
src/stylesheet.rs
@@ -29,7 +29,7 @@ impl Stylesheet {
29
30
31
/// Transforms a libxml `Document` per the current stylesheet
32
- pub fn transform(&mut self, doc: &Document) -> Result<Document, Box<Error>> {
+ pub fn transform(&mut self, doc: &Document) -> Result<Document, Box<dyn Error>> {
33
let ctxt = self.build_context(doc)?;
34
35
// ctxt.xinclude = 1;
0 commit comments