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 ac8f4d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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
4 changes: 2 additions & 2 deletions sentry-types/src/dsn.rs
Expand Up @@ -86,10 +86,10 @@ impl Dsn {
use std::fmt::Write;
let mut buf = format!("{}://{}", self.scheme(), self.host());
if self.port() != self.scheme.default_port() {
write!(&mut buf, ":{}", self.port()).unwrap();
write!(buf, ":{}", self.port()).unwrap();
}
write!(
&mut buf,
buf,
"{}api/{}/{}/",
self.path,
self.project_id(),
Expand Down

0 comments on commit ac8f4d9

Please sign in to comment.