1 2 3 4 5 6 7
use std::error::Error; use std::process::Command; pub fn open(uri: &str) { Command::new("open").arg(uri).spawn()?; Ok(()) }