Skip to content

Commit f2088a7

Browse files
committed
format
1 parent 23f4dff commit f2088a7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/commands/inputs.rs

+8-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl Visitor for InputVisitor {
8787
let name = decl.name().as_str().to_string();
8888
let has_default = decl.expr().is_some();
8989
self.inputs.insert(name.clone(), has_default);
90-
90+
9191
// Check if the default is a literal
9292
let has_literal_default = if let Some(expr) = decl.expr() {
9393
matches!(expr, Literal(_))
@@ -100,7 +100,8 @@ impl Visitor for InputVisitor {
100100
}
101101
}
102102

103-
// --hide-expressions hides any input which isn't defaulted to a literal or required
103+
// --hide-expressions hides any input which isn't defaulted to a literal or
104+
// required
104105

105106
pub async fn generate_inputs(args: InputsArgs) -> Result<()> {
106107
let results: Vec<wdl::analysis::AnalysisResult> =
@@ -198,7 +199,11 @@ fn has_literal_default(document: &Document, document_path: &str, input_name: &st
198199

199200
ast_doc.visit(&mut (), &mut visitor);
200201

201-
visitor.literal_defaults.get(input_name).cloned().unwrap_or(false)
202+
visitor
203+
.literal_defaults
204+
.get(input_name)
205+
.cloned()
206+
.unwrap_or(false)
202207
}
203208

204209
// Collects inputs with their parent names

0 commit comments

Comments
 (0)