Skip to content

Commit b74113b

Browse files
Fix a clippy warning
1 parent 4e80e9a commit b74113b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/pre_flight.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,13 @@ use std::env;
1616

1717
/// Represents the two modes of operation for the `rabbitmqadmin` CLI:
1818
/// interactive (driven by a human) and non-interactive (driven by automation tools).
19-
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
19+
#[derive(Default, Debug, Clone, Copy, PartialEq, Eq)]
2020
pub enum InteractivityMode {
21+
#[default]
2122
Interactive,
2223
NonInteractive,
2324
}
2425

25-
impl Default for InteractivityMode {
26-
fn default() -> Self {
27-
Self::Interactive
28-
}
29-
}
3026

3127
impl InteractivityMode {
3228
pub fn from_env() -> Self {

0 commit comments

Comments
 (0)