mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-08-15 20:23:49 -07:00
clippy: string constants have static lifetime by default.
This commit is contained in:
committed by
Andrew Gallant
parent
373e0595e6
commit
8141da9d39
@@ -2,7 +2,7 @@ use std::collections::HashMap;
|
|||||||
|
|
||||||
use clap::{App, AppSettings, Arg, ArgSettings};
|
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 (rg) recursively searches your current directory for a regex pattern.
|
||||||
|
|
||||||
ripgrep's regex engine uses finite automata and guarantees linear time
|
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.";
|
Use -h for short descriptions and --help for more details.";
|
||||||
|
|
||||||
const USAGE: &'static str = "
|
const USAGE: &str = "
|
||||||
rg [options] PATTERN [path ...]
|
rg [options] PATTERN [path ...]
|
||||||
rg [options] [-e PATTERN ...] [-f FILE ...] [path ...]
|
rg [options] [-e PATTERN ...] [-f FILE ...] [path ...]
|
||||||
rg [options] --files [path ...]
|
rg [options] --files [path ...]
|
||||||
rg [options] --type-list";
|
rg [options] --type-list";
|
||||||
|
|
||||||
const TEMPLATE: &'static str = "\
|
const TEMPLATE: &str = "\
|
||||||
{bin} {version}
|
{bin} {version}
|
||||||
{author}
|
{author}
|
||||||
{about}
|
{about}
|
||||||
|
Reference in New Issue
Block a user