Browse Source

Panic on unknown extension

circle-ci
Andreas Linz 5 years ago
parent
commit
d39752f461
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      build.rs

+ 4
- 1
build.rs View File

@ -68,7 +68,10 @@ fn main() {
}
fn sio_url(ext: &'static str) -> String {
format!("http://libsound.io/release/{}.{}", sio!("1.1.0"), ext)
match ext {
"tar.gz" | "zip" => format!("http://libsound.io/release/{}.{}", sio!("1.1.0"), ext),
_ => panic!(format!("No release for format: {}", ext)),
}
}
fn build(target: String) {

Loading…
Cancel
Save