You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.subcommand(SubCommand::with_name("block").about("Debug blockdir").subcommand(SubCommand::with_name("list").about("List hashes of all blocks in the blockdir").arg(Arg::with_name("archive").required(true)),).subcommand(SubCommand::with_name("referenced").about("List hashes of all blocks referenced by an index").arg(Arg::with_name("archive").required(true)),),
There's an outer call to .subcommand() which takes a single parameter made from the SubCommand builder pattern. rustfmt always wants to add a trailing comma, I guess on the principle that I might add another parameter to subcommand() later (which isn't actually possible.)
I guess ideally it would know this is a chain of builder-style function calls, not a list...
The text was updated successfully, but these errors were encountered:
In this code https://github.com/sourcefrog/conserve/blob/d20687ab5f0e9cd607185e889857e8cd124d106a/src/bin/conserve.rs#L143 for example
There's an outer call to
.subcommand()
which takes a single parameter made from theSubCommand
builder pattern.rustfmt
always wants to add a trailing comma, I guess on the principle that I might add another parameter tosubcommand()
later (which isn't actually possible.)I guess ideally it would know this is a chain of builder-style function calls, not a list...
The text was updated successfully, but these errors were encountered: