Skip to content

Commit

Permalink
revise: adds Output::builder()
Browse files Browse the repository at this point in the history
  • Loading branch information
claymcleod committed Feb 5, 2025
1 parent 8f2e0be commit f39208c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crankshaft-engine/src/task/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub struct Input {
}

impl Input {
/// Gets a new builder for an [`Input`].
/// Gets a new builder for an input.
pub fn builder() -> Builder {
Builder::default()
}
Expand Down
5 changes: 5 additions & 0 deletions crankshaft-engine/src/task/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ pub struct Output {
}

impl Output {
/// Gets a new builder for an output.
pub fn builder() -> Builder {
Builder::default()
}

/// The name of the output (if it exists).
pub fn name(&self) -> Option<&str> {
self.name.as_deref()
Expand Down

0 comments on commit f39208c

Please sign in to comment.