Skip to content

Commit

Permalink
add default()
Browse files Browse the repository at this point in the history
  • Loading branch information
Baschtie committed Sep 9, 2023
1 parent 43388f8 commit f196c32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ pub struct Cli {
}

/// The various log format options
#[derive(Copy, Clone, PartialEq, Eq, Debug, EnumString, Display)]
#[derive(Copy, Clone, PartialEq, Eq, Debug, EnumString, Display, Default)]
pub enum LogFormats {
#[strum(serialize = "detect")]
#[default]
Detect,
#[strum(serialize = "json")]
Json,
Expand Down Expand Up @@ -340,6 +341,7 @@ mod tests {
}),
..<_>::default()
}),
log_format: LogFormats::default(),
};

let control_plane_admin_port = crate::test_utils::available_addr().await.port();
Expand All @@ -358,6 +360,7 @@ mod tests {
path: endpoints_file.path().to_path_buf(),
},
}),
log_format: LogFormats::default(),
};

let proxy_admin_port = crate::test_utils::available_addr().await.port();
Expand All @@ -370,6 +373,7 @@ mod tests {
management_server: vec!["http://localhost:7800".parse().unwrap()],
..<_>::default()
}),
log_format: LogFormats::default(),
};

tokio::spawn(relay.drive());
Expand Down

0 comments on commit f196c32

Please sign in to comment.