From 7d4693ed8cd254583130dc2fd5152e6bedbbf3d7 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Thu, 2 Dec 2021 11:12:39 -0500 Subject: [PATCH] fix: Box contents of an enum to make the variants close in size Identified by clippy https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant --- influxdb_iox/src/commands/debug/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/influxdb_iox/src/commands/debug/mod.rs b/influxdb_iox/src/commands/debug/mod.rs index ee786f1037..61fb45c591 100644 --- a/influxdb_iox/src/commands/debug/mod.rs +++ b/influxdb_iox/src/commands/debug/mod.rs @@ -22,7 +22,7 @@ pub struct Config { #[derive(Debug, StructOpt)] enum Command { /// Dump preserved catalog. - DumpCatalog(dump_catalog::Config), + DumpCatalog(Box), /// Prints what CPU features are used by the compiler by default. PrintCpu, @@ -30,7 +30,7 @@ enum Command { pub async fn command(config: Config) -> Result<()> { match config.command { - Command::DumpCatalog(dump_catalog) => dump_catalog::command(dump_catalog) + Command::DumpCatalog(dump_catalog) => dump_catalog::command(*dump_catalog) .await .context(DumpCatalogError), Command::PrintCpu => {