Skip to content

Commit

Permalink
Make clippy happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
honzasp committed Jun 4, 2023
1 parent 9a710c6 commit 5d8d6be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/client/negotiate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ pub(super) struct NegotiateState {
done_txs: Vec<oneshot::Sender<Result<()>>>,
}

#[derive(Debug, Copy, Clone)]
#[derive(Debug, Default, Copy, Clone)]
enum State {
#[default]
Idle,
KexInit,
Kex,
Expand Down Expand Up @@ -89,10 +90,6 @@ pub(super) fn init_negotiate() -> NegotiateState {
NegotiateState { state: State::KexInit, .. NegotiateState::default() }
}

impl Default for State {
fn default() -> Self { State::Idle }
}

pub(super) fn init_last_kex() -> LastKex {
LastKex {
done: false,
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
//! - Functions for decoding keys are in the [`keys`] module.
//! - Support for the `known_hosts` file is in the [`host_file`] module.
//!
#![allow(clippy::box_default)]
#![allow(clippy::collapsible_if)]
#![allow(clippy::unused_unit)]
#![allow(clippy::unit_arg)]
Expand Down

0 comments on commit 5d8d6be

Please sign in to comment.