mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
reformat the world
This commit is contained in:
parent
5cb1d41a30
commit
12e3b4c70b
129 changed files with 727 additions and 2509 deletions
|
@ -13,18 +13,8 @@ fn main() -> Result<()> {
|
|||
.setting(clap::AppSettings::SubcommandRequiredElseHelp)
|
||||
.subcommand(
|
||||
SubCommand::with_name("render-test")
|
||||
.arg(
|
||||
Arg::with_name("line")
|
||||
.long("--line")
|
||||
.required(true)
|
||||
.takes_value(true),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("file")
|
||||
.long("--file")
|
||||
.required(true)
|
||||
.takes_value(true),
|
||||
),
|
||||
.arg(Arg::with_name("line").long("--line").required(true).takes_value(true))
|
||||
.arg(Arg::with_name("file").long("--file").required(true).takes_value(true)),
|
||||
)
|
||||
.subcommand(SubCommand::with_name("parse").arg(Arg::with_name("no-dump").long("--no-dump")))
|
||||
.subcommand(SubCommand::with_name("symbols"))
|
||||
|
@ -108,8 +98,5 @@ fn selections(file: &SourceFile, start: u32, end: u32) -> String {
|
|||
.iter()
|
||||
.map(|r| (1 + u32::from(r.start()), 1 + u32::from(r.end())))
|
||||
.map(|(s, e)| format!("({} {})", s, e));
|
||||
join(ranges)
|
||||
.separator(" ")
|
||||
.surround_with("(", ")")
|
||||
.to_string()
|
||||
join(ranges).separator(" ").surround_with("(", ")").to_string()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue