mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
option_parser: Make IntegerList generic
This allows its use for all integer types and will generate an error if the value is too wide for the type. Assisted-by: Claude:Opus-4.8 Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
@@ -2002,7 +2002,7 @@ impl GenericVhostUserConfig {
|
||||
.ok_or(Error::ParseGenericVhostUserSockMissing)?;
|
||||
|
||||
let IntegerList(queue_sizes) = parser
|
||||
.convert("queue_sizes")
|
||||
.convert::<IntegerList>("queue_sizes")
|
||||
.map_err(Error::ParseGenericVhostUser)?
|
||||
.ok_or(Error::ParseGenericVhostUserQueueSizeMissing)?;
|
||||
let device_type_str = parser
|
||||
|
||||
Reference in New Issue
Block a user