Skip to content

Commit a5dc28f

Browse files
committed
blocks
1 parent 7a819ad commit a5dc28f

File tree

17 files changed

+1305
-246
lines changed

17 files changed

+1305
-246
lines changed

lading/src/common.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,18 @@ pub struct Output {
1414
pub stdout: Behavior,
1515
}
1616

17-
#[derive(Debug, Deserialize, Clone, PartialEq, Eq)]
17+
#[derive(Debug, Deserialize, Clone, PartialEq, Eq, Default)]
1818
#[serde(deny_unknown_fields)]
1919
#[serde(untagged)]
2020
/// Defines the [`Output`] behavior for stderr and stdout.
2121
pub enum Behavior {
22+
#[default]
2223
/// Redirect stdout, stderr to /dev/null
2324
Quiet,
2425
/// Write to a location on-disk.
2526
Log(PathBuf),
2627
}
2728

28-
impl Default for Behavior {
29-
fn default() -> Self {
30-
Self::Quiet
31-
}
32-
}
33-
3429
impl fmt::Display for Behavior {
3530
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
3631
match self {

0 commit comments

Comments
 (0)