From 4f6f7622db2417097e3a259f2b4fa09d48cd19c9 Mon Sep 17 00:00:00 2001 From: Philip Homburg Date: Mon, 15 Dec 2025 11:58:18 +0100 Subject: [PATCH] Clippy. --- src/commands/keyset/cmd.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/commands/keyset/cmd.rs b/src/commands/keyset/cmd.rs index 2b1eb65..b1de361 100644 --- a/src/commands/keyset/cmd.rs +++ b/src/commands/keyset/cmd.rs @@ -277,6 +277,7 @@ enum Commands { }, } +/// The fields that can be reported with a get command. #[derive(Clone, Debug, Subcommand)] enum GetCommands { /// Get the state of the use_csk config variable. @@ -299,6 +300,7 @@ enum GetCommands { Ds, } +/// The fields that can be changed with a set command. #[derive(Clone, Debug, Subcommand)] enum SetCommands { /// Set the use_csk config variable. @@ -472,6 +474,7 @@ enum SetCommands { }, } +/// The various subcommands of a key roll command. #[derive(Clone, Debug, Subcommand)] enum RollCommands { /// Start a key roll. @@ -496,6 +499,7 @@ enum RollCommands { RollDone, } +/// The top-level import command. #[derive(Clone, Debug, Subcommand)] enum ImportCommands { /// Import a public key. @@ -524,6 +528,7 @@ enum ImportCommands { }, } +/// Where to import from, either a file or an HSM access using KMIP. #[derive(Clone, Debug, Subcommand)] enum ImportKeyCommands { /// Import public/private key pair from file. @@ -574,6 +579,7 @@ enum ImportKeyCommands { }, } +/// Which type of key a command applies to. #[derive(Debug)] enum KeyVariant { /// Apply command to KSKs. @@ -584,6 +590,7 @@ enum KeyVariant { Csk, } +/// Which high-level key roll a command applies to. // We cannot use RollType because that name is already in use. enum RollVariant { /// Apply the subcommand to a KSK roll. @@ -1589,6 +1596,7 @@ struct KeySetConfig { update_ds_command: Vec, } +/// Configuration for key roll automation. #[derive(Clone, Default, Deserialize, Serialize)] struct AutoConfig { /// Whether to start a key roll automatically. @@ -1633,6 +1641,7 @@ pub struct KeySetState { internal: HashMap, } +/// Parameters for creating a new key. #[derive(Deserialize, Serialize)] enum KeyParameters { /// The RSASHA256 algorithm with the key length in bits. @@ -1753,6 +1762,7 @@ struct RollStateReports { done: Mutex, } +/// State for the report progration checks. #[derive(Clone, Debug, Default, Deserialize, Serialize)] struct ReportState { /// State for DNSKEY propagation checks.