1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00

clippy: string constants have static lifetime by default.

This commit is contained in:
Matthias Krüger 2017-11-19 16:32:21 +01:00 committed by Andrew Gallant
parent 373e0595e6
commit 8141da9d39

View File

@ -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}