Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Huene <[email protected]>
  • Loading branch information
a-frantz and peterhuene authored Dec 5, 2024
1 parent 801877a commit 30861c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wdl-lint/src/rules/container_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fn array_to_string_literal(span: Span) -> Diagnostic {
/// Creates a diagnostic indicating that an array contains one or more 'any'
/// URIs.
fn array_containing_anys(spans: impl Iterator<Item = Span>) -> Diagnostic {
let mut diagnostic = Diagnostic::warning(String::from("arrays containing any are ambiguous"))
let mut diagnostic = Diagnostic::warning(format!("container arrays containing `{ANY_CONTAINER_VALUE}` are ambiguous"))
.with_rule(ID)
.with_fix(format!(
"remove these entries or change the array to a string literal with the value of \
Expand Down
2 changes: 1 addition & 1 deletion wdl-lint/src/rules/todo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn todo_comment(comment: &str, comment_span: Span, offset: usize) -> Diagnostic
Diagnostic::note(format!("remaining `{TODO}` item found"))
.with_rule(ID)
.with_highlight(Span::new(start, comment.len()))
.with_fix("remove the `TODO` item once it's been implemented")
.with_fix("remove the `TODO` item once it has been implemented")
}

impl Rule for TodoRule {
Expand Down

0 comments on commit 30861c9

Please sign in to comment.