Skip to content

Commit

Permalink
🚨 apply clippy suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: David Bernard <david.bernard.31@gmail.com>
  • Loading branch information
davidB committed Feb 11, 2024
1 parent 62d9c2a commit 799ef4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init-tracing-opentelemetry/src/otlp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ where

/// turn a string of "k1=v1,k2=v2,..." into an iterator of (key, value) tuples
fn parse_headers(val: &str) -> impl Iterator<Item = (String, String)> + '_ {
val.split(",").filter_map(|kv| {
val.split(',').filter_map(|kv| {
let s = kv
.split_once("=")
.split_once('=')
.map(|(k, v)| (k.to_owned(), v.to_owned()));
s
})
Expand Down

0 comments on commit 799ef4d

Please sign in to comment.