Skip to content

Commit

Permalink
new rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
FauxFaux committed Jan 15, 2018
1 parent f8166c5 commit 9cdd5d5
Show file tree
Hide file tree
Showing 2 changed files with 1,499 additions and 1,035 deletions.
8 changes: 4 additions & 4 deletions zstd-safe/zstd-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ extern crate glob;
use std::{env, fs};
use std::path::PathBuf;


#[cfg(feature = "bindgen")]
fn generate_bindings() {
use std::env;
Expand All @@ -27,13 +26,11 @@ fn generate_bindings() {
bindings
.write_to_file(out_path.join("bindings.rs"))
.expect("Could not write bindings");

}

#[cfg(not(feature = "bindgen"))]
fn generate_bindings() {}


#[cfg(not(feature = "legacy"))]
fn set_legacy(_config: &mut gcc::Build) {}

Expand Down Expand Up @@ -87,7 +84,10 @@ fn compile_zstd() {
let include = dst.join("include");
fs::create_dir_all(&include).unwrap();
fs::copy(src.join("zstd.h"), include.join("zstd.h")).unwrap();
fs::copy(src.join("dictBuilder").join("zdict.h"), include.join("zdict.h")).unwrap();
fs::copy(
src.join("dictBuilder").join("zdict.h"),
include.join("zdict.h"),
).unwrap();
println!("cargo:root={}", dst.display());
}

Expand Down
Loading

0 comments on commit 9cdd5d5

Please sign in to comment.