Skip to content

Commit f9f23b7

Browse files
committed
minor clippy lints
1 parent d9d1924 commit f9f23b7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

build.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ extern crate pkg_config;
22
use pkg_config::find_library;
33

44
fn main() {
5-
if find_library("libxslt").is_ok() {
6-
return;
7-
} else {
5+
if find_library("libxslt").is_err() {
86
panic!("Could not find libxslt using pkg-config");
97
}
108
// // The bindgen::Builder is the main entry point

src/stylesheet.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl Stylesheet {
2929
}
3030

3131
/// Transforms a libxml `Document` per the current stylesheet
32-
pub fn transform(&mut self, doc: &Document) -> Result<Document, Box<Error>> {
32+
pub fn transform(&mut self, doc: &Document) -> Result<Document, Box<dyn Error>> {
3333
let ctxt = self.build_context(doc)?;
3434

3535
// ctxt.xinclude = 1;

0 commit comments

Comments
 (0)