fix build and remove .cargo regs
This commit is contained in:
parent
8ced25b36c
commit
37260d7cf5
3
.gitignore
vendored
3
.gitignore
vendored
@ -30,6 +30,3 @@
|
|||||||
|
|
||||||
# Build artifacts
|
# Build artifacts
|
||||||
out/
|
out/
|
||||||
|
|
||||||
# Cargo local dev config
|
|
||||||
.cargo
|
|
||||||
|
@ -46,12 +46,12 @@ pub fn open(url: &str) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(macos)]
|
#[cfg(target_os="macos")]
|
||||||
pub fn open(url: &str) {
|
pub fn open(url: &str) {
|
||||||
let _ = std::process::Command::new("open").arg(url).output();
|
let _ = std::process::Command::new("open").arg(url).output();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(linux)]
|
#[cfg(target_os="linux")]
|
||||||
pub fn open(url: &str) {
|
pub fn open(url: &str) {
|
||||||
let _ = std::process::Command::new("xdg-open").arg(url).output();
|
let _ = std::process::Command::new("xdg-open").arg(url).output();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user