mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-13 08:40:45 +08:00
Add comment to explain weird use of alloc::vec
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
This commit is contained in:
committed by
Joey Yandle
parent
5645a0b0f8
commit
e01a834a25
@@ -94,6 +94,8 @@ pub struct PutChunkArgs {
|
||||
pub slot_version: u32,
|
||||
/// The data to upload
|
||||
#[arg(required = false, value_parser = parse_data)]
|
||||
// Note this weirdness is due to https://github.com/clap-rs/clap/discussions/4695
|
||||
// Need to specify the long name here due to invalid parsing in Clap which looks at the NAME rather than the TYPE which causes issues in how it handles Vec's.
|
||||
pub data: alloc::vec::Vec<u8>,
|
||||
}
|
||||
|
||||
@@ -105,6 +107,8 @@ pub struct SignArgs {
|
||||
pub config: PathBuf,
|
||||
/// The data to sign
|
||||
#[arg(required = false, value_parser = parse_data)]
|
||||
// Note this weirdness is due to https://github.com/clap-rs/clap/discussions/4695
|
||||
// Need to specify the long name here due to invalid parsing in Clap which looks at the NAME rather than the TYPE which causes issues in how it handles Vec's.
|
||||
pub data: alloc::vec::Vec<u8>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user