Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
garrensmith committed Sep 14, 2022
1 parent b554aec commit 53907ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions query-engine/connectors/sql-query-connector/src/sql_trace.rs
Expand Up @@ -33,7 +33,6 @@ macro_rules! sql_trace {
// Temporary method to pass the traceid in an operation
fn add_trace_id(self, trace_id: Option<String>) -> Self {
if let Some(traceparent) = trace_id {
let out = should_sample(&traceparent);
if should_sample(&traceparent) {
self.comment(format!("traceparent={}", traceparent))
} else {
Expand All @@ -48,7 +47,7 @@ macro_rules! sql_trace {
}

fn should_sample(traceparent: &str) -> bool {
let trace_info: Vec<&str> = traceparent.split("-").collect();
let trace_info: Vec<&str> = traceparent.split('-').collect();

if trace_info.len() != 4 {
false
Expand Down

0 comments on commit 53907ad

Please sign in to comment.