Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <github@jessfraz.com>
  • Loading branch information
jessfraz committed Mar 2, 2022
1 parent 2e699f0 commit 512562d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sentry-core/src/performance.rs
Expand Up @@ -482,7 +482,7 @@ impl Span {
}
if let Some(data) = request.data {
if let Ok(data) = serde_json::from_str::<serde_json::Value>(&data) {
span.data.insert("data".into(), data.into());
span.data.insert("data".into(), data);
} else {
span.data.insert("data".into(), data.into());
}
Expand All @@ -495,12 +495,12 @@ impl Span {
}
if !request.headers.is_empty() {
if let Ok(headers) = serde_json::to_value(request.headers) {
span.data.insert("headers".into(), headers.into());
span.data.insert("headers".into(), headers);
}
}
if !request.env.is_empty() {
if let Ok(env) = serde_json::to_value(request.env) {
span.data.insert("env".into(), env.into());
span.data.insert("env".into(), env);
}
}
}
Expand Down

0 comments on commit 512562d

Please sign in to comment.