Commit f57f44a5 authored by gabi-250's avatar gabi-250 🕸️
Browse files

Merge branch 'nightly-clippy' into 'main'

Fix nightly warnings

See merge request tpo/core/arti!3508
parents 06fd812e bb74cf89
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ struct CookieBeginParams {
    client_nonce: CookieAuthNonce,
}

/// Response to an `auth:cookie_begin` request.
#[derive(Deserialize, Debug)]
struct CookieBeginReply {
    /// Temporary ID to use while authenticating.
+1 −0
Original line number Diff line number Diff line
@@ -162,6 +162,7 @@ static_rpc_invoke_fn! {
}

#[cfg(feature = "describe-methods")]
#[allow(clippy::missing_docs_in_private_items)] // TODO
mod list_all_methods {
    use std::{convert::Infallible, sync::Arc};

+2 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ pub(crate) enum HscSubcommands {
    Hsc(HscSubcommand),
}

/// The `hsc` subcommand.
#[derive(Debug, Subcommand)]
pub(crate) enum HscSubcommand {
    /// Prepare a service discovery key for connecting
@@ -49,6 +50,7 @@ pub(crate) enum HscSubcommand {
    CTorMigrate(CTorMigrateArgs),
}

/// The `hsc-key` subcommand.
#[derive(Debug, Subcommand)]
pub(crate) enum KeySubcommand {
    /// Get or generate a hidden service client key
+3 −1
Original line number Diff line number Diff line
@@ -25,17 +25,19 @@ pub(crate) enum HssSubcommands {
    Hss(Hss),
}

/// The `hss` subcommand and args.
#[derive(Debug, Parser)]
pub(crate) struct Hss {
    /// Arguments shared by all hss subcommands.
    #[command(flatten)]
    common: CommonArgs,

    /// Return the identity key for the specified service.
    /// The `hss` subcommand to run.
    #[command(subcommand)]
    command: HssSubcommand,
}

/// The `hss` subcommand.
#[derive(Subcommand, Debug, Clone)]
pub(crate) enum HssSubcommand {
    /// Print the .onion address of a hidden service
+1 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ pub(crate) enum KeysSubcommands {
    Keys(KeysSubcommand),
}

/// The `keys` subcommand.
#[derive(Subcommand, Debug, Clone)]
pub(crate) enum KeysSubcommand {
    /// List keys and certificates.
Loading