Set static lifetime, fixes #23

This commit is contained in:
sharkdp 2017-06-06 20:36:17 +02:00
parent 4d950ae97c
commit 8c6a9c8e32
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ struct FdOptions {
}
/// Root directory
static ROOT_DIR : &str = "/";
static ROOT_DIR : &'static str = "/";
/// Print a search result to the console.
fn print_entry(base: &Path, entry: &Path, config: &FdOptions) {