From 37260d7cf5f6f85495221e7e16e5541db02b49c7 Mon Sep 17 00:00:00 2001 From: NikVolf Date: Tue, 14 Jun 2016 18:16:41 +0300 Subject: [PATCH] fix build and remove .cargo regs --- .gitignore | 3 --- parity/url.rs | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 02e321a1b..3226ea5a2 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,3 @@ # Build artifacts out/ - -# Cargo local dev config -.cargo diff --git a/parity/url.rs b/parity/url.rs index 8e6f31222..8824704b0 100644 --- a/parity/url.rs +++ b/parity/url.rs @@ -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(); }