Skip to content

Commit

Permalink
Make helper return Box<[_]> instead of Vec<_>
Browse files Browse the repository at this point in the history
  • Loading branch information
steviez committed Jun 17, 2024
1 parent dd3760c commit 2d78952
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ledger-tool/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use {
};

/// Returns the arguments that configure AccountsDb
pub fn accounts_db_args<'a, 'b>() -> Vec<Arg<'a, 'b>> {
pub fn accounts_db_args<'a, 'b>() -> Box<[Arg<'a, 'b>]> {
vec![
Arg::with_name("account_paths")
.long("accounts")
Expand Down Expand Up @@ -109,6 +109,7 @@ pub fn accounts_db_args<'a, 'b>() -> Vec<Arg<'a, 'b>> {
)
.hidden(hidden_unless_forced()),
]
.into_boxed_slice()
}

/// Parse a `ProcessOptions` from subcommand arguments. This function attempts
Expand Down

0 comments on commit 2d78952

Please sign in to comment.