summaryrefslogtreecommitdiffstats
path: root/library/test/src/options.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/test/src/options.rs')
-rw-r--r--library/test/src/options.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/test/src/options.rs b/library/test/src/options.rs
index 75ec0b616..3eaad5947 100644
--- a/library/test/src/options.rs
+++ b/library/test/src/options.rs
@@ -16,19 +16,21 @@ pub enum ShouldPanic {
}
/// Whether should console output be colored or not
-#[derive(Copy, Clone, Debug)]
+#[derive(Copy, Clone, Default, Debug)]
pub enum ColorConfig {
+ #[default]
AutoColor,
AlwaysColor,
NeverColor,
}
/// Format of the test results output
-#[derive(Copy, Clone, Debug, PartialEq, Eq)]
+#[derive(Copy, Clone, Debug, Default, PartialEq, Eq)]
pub enum OutputFormat {
/// Verbose output
Pretty,
/// Quiet output
+ #[default]
Terse,
/// JSON output
Json,