Skip to content

Commit

Permalink
fix: 'new()' method for format Config Builder (#223)
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Huene <peter@huene.dev>
  • Loading branch information
a-frantz and peterhuene authored Oct 16, 2024
1 parent b5caa3a commit 3a895d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions wdl-format/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[package]
name = "wdl-format"
version = "0.2.0"
description = "Formatting of WDL (Workflow Description Language) documents"
license.workspace = true
edition.workspace = true
authors.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion wdl-format/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub use builder::Builder;
pub use indent::Indent;

/// Configuration for formatting.
#[derive(Debug, Default)]
#[derive(Clone, Copy, Debug, Default)]
pub struct Config {
/// The number of characters to indent.
indent: Indent,
Expand Down
5 changes: 5 additions & 0 deletions wdl-format/src/config/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ pub struct Builder {
}

impl Builder {
/// Creates a new builder with default values.
pub fn new() -> Self {
Default::default()
}

/// Sets the indentation level.
///
/// # Notes
Expand Down

0 comments on commit 3a895d4

Please sign in to comment.