From 8141da9d39de8c67339d83ada2b7c387e5713d1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Sun, 19 Nov 2017 16:32:21 +0100 Subject: [PATCH] clippy: string constants have static lifetime by default. --- src/app.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app.rs b/src/app.rs index c92e681..9963963 100644 --- a/src/app.rs +++ b/src/app.rs @@ -2,7 +2,7 @@ use std::collections::HashMap; use clap::{App, AppSettings, Arg, ArgSettings}; -const ABOUT: &'static str = " +const ABOUT: &str = " ripgrep (rg) recursively searches your current directory for a regex pattern. ripgrep's regex engine uses finite automata and guarantees linear time @@ -17,13 +17,13 @@ Project home page: https://github.com/BurntSushi/ripgrep Use -h for short descriptions and --help for more details."; -const USAGE: &'static str = " +const USAGE: &str = " rg [options] PATTERN [path ...] rg [options] [-e PATTERN ...] [-f FILE ...] [path ...] rg [options] --files [path ...] rg [options] --type-list"; -const TEMPLATE: &'static str = "\ +const TEMPLATE: &str = "\ {bin} {version} {author} {about}