Skip to content

Commit

Permalink
No need to convert content_type to a vector.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmart7t2 committed Jan 29, 2024
1 parent b6c4053 commit d760747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/inscriptions/envelope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ impl ParsedEnvelope {
.map(|envelope| envelope.into())
.filter(|envelope: &ParsedEnvelope| !ignore_txt_and_json || match envelope.payload.content_type.clone() {
Some(content_type) =>
!content_type.to_vec().starts_with("text/plain".as_bytes()) &&
!content_type.to_vec().starts_with("application/json".as_bytes()),
!content_type.starts_with("text/plain".as_bytes()) &&
!content_type.starts_with("application/json".as_bytes())
None => true,
})
.collect()
Expand Down

0 comments on commit d760747

Please sign in to comment.