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(); }