1 2 3 4 5 6 7 8
extern crate porthole; pub fn main() { match porthole::open() { Ok(port) => println!("{}",port), Err(e) => panic!(format!("unable to resolve an open port: {}", e)) } }