let dir = matches.value_of("work_dir").unwrap().clone(); // this is a &str
let dir: &'static str = Box::leak(Box::new(dir));
// complier complains `matches` does not live long enough, but I already clone it
I need a static str from a variable, I searched it but not so many useful information, can you help me ? thanks!