Skip to content

Commit

Permalink
Merge pull request gtk-rs#241 from jeremyletang/revert-238-patch-1
Browse files Browse the repository at this point in the history
Revert "Replace match...Err block with equivalent unwrap()"
  • Loading branch information
GuillaumeGomez committed Mar 22, 2015
2 parents 472eb7d + 30e6f37 commit 6bbca49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gtk3-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ fn main() {
env::set_var("PKG_CONFIG_ALLOW_CROSS", "1");

// try to find gtk+-3.0 library
pkg_config::find_library("gtk+-3.0").unwrap();
match pkg_config::find_library("gtk+-3.0") {
Ok(_) => {},
Err(e) => panic!("{}", e)
};

// call native pkg-config, there is no way to do this with pkg-config for now
let cmd = Command::new("pkg-config").arg("--cflags").arg("gtk+-3.0")
Expand Down

0 comments on commit 6bbca49

Please # to comment.