Skip to content

Commit

Permalink
Fixed clippy issue w/ to_string
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuereth committed Mar 27, 2024
1 parent a9e45c8 commit d0804d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/weaver_semconv_gen/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,8 @@ pub fn is_markdown_snippet_directive(line: &str) -> bool {
pub fn parse_markdown_snippet_directive(line: &str) -> Result<GenerateMarkdownArgs, Error> {
match parse_markdown_snippet_raw(line) {
Ok((rest, result)) if rest.trim().is_empty() => Ok(result),
// TODO - Translate error message better?
_ => Err(Error::InvalidSnippetHeader {
header: line.to_string(),
header: line.to_owned(),
}),
}
}
Expand Down

0 comments on commit d0804d1

Please sign in to comment.