Skip to content

Instantly share code, notes, and snippets.

View daxhuiberts's full-sized avatar

Dax Huiberts daxhuiberts

View GitHub Profile
anonymous
anonymous / main.rs
Created April 12, 2015 16:05
use std::error::Error;
use std::io;
use std::io::prelude::*;
use std::process;
macro_rules! strerr {
($($tt:tt)*) => (Err(From::from(&*format!($($tt)*))));
}
type CliResult<T> = Result<T, Box<Error + Send>>;
anonymous
anonymous / main.rs
Created April 12, 2015 15:40
extern crate regex;
use std::error::Error;
use std::io;
use std::io::prelude::*;
use std::process;
use regex::Regex;
type CliResult<T> = Result<T, Box<Error + Send>>;