fix build and remove .cargo regs

This commit is contained in:
NikVolf 2016-06-14 18:16:41 +03:00
parent 8ced25b36c
commit 37260d7cf5
2 changed files with 2 additions and 5 deletions

3
.gitignore vendored
View File

@ -30,6 +30,3 @@
# Build artifacts
out/
# Cargo local dev config
.cargo

View File

@ -46,12 +46,12 @@ pub fn open(url: &str) {
}
}
#[cfg(macos)]
#[cfg(target_os="macos")]
pub fn open(url: &str) {
let _ = std::process::Command::new("open").arg(url).output();
}
#[cfg(linux)]
#[cfg(target_os="linux")]
pub fn open(url: &str) {
let _ = std::process::Command::new("xdg-open").arg(url).output();
}