From 8c6a9c8e321685135176b3a540c355c24244541f Mon Sep 17 00:00:00 2001 From: sharkdp Date: Tue, 6 Jun 2017 20:36:17 +0200 Subject: [PATCH] Set static lifetime, fixes #23 --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 4781e53..6d97632 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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) {