diff options
author | Matthias Krüger <matthias.krueger@famsik.de> | 2017-11-19 16:32:21 +0100 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2017-11-22 10:50:28 -0500 |
commit | 8141da9d39de8c67339d83ada2b7c387e5713d1d (patch) | |
tree | a891f85b4007ee89c2cc7c2c1ce18247af14f6d5 /src/app.rs | |
parent | 373e0595e6dfd4b1e1f29ec7b24f81ef4c08d90c (diff) |
clippy: string constants have static lifetime by default.
Diffstat (limited to 'src/app.rs')
-rw-r--r-- | src/app.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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} |