Skip to content

Commit 2b37699

Browse files
jchrostek-ddclaude
andcommitted
style: fix cargo fmt formatting
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 24795e9 commit 2b37699

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

bottlecap/src/otlp/processor.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,17 @@ mod tests {
185185
normalize_timestamps(&mut value);
186186

187187
// Check startTimeUnixNano was converted from integer to string
188-
let start_time = &value["resourceSpans"][0]["scopeSpans"][0]["spans"][0]["startTimeUnixNano"];
188+
let start_time =
189+
&value["resourceSpans"][0]["scopeSpans"][0]["spans"][0]["startTimeUnixNano"];
189190
assert_eq!(start_time, &json!("1581452772000000321"));
190191

191192
// Check endTimeUnixNano was left as string
192193
let end_time = &value["resourceSpans"][0]["scopeSpans"][0]["spans"][0]["endTimeUnixNano"];
193194
assert_eq!(end_time, &json!("1581452772000000999"));
194195

195196
// Check event timeUnixNano was converted from object to string
196-
let event_time = &value["resourceSpans"][0]["scopeSpans"][0]["spans"][0]["events"][0]["timeUnixNano"];
197+
let event_time =
198+
&value["resourceSpans"][0]["scopeSpans"][0]["spans"][0]["events"][0]["timeUnixNano"];
197199
let expected = (395_146_000_u64 << 32) | 1_029_784_000_u64;
198200
assert_eq!(event_time, &json!(expected.to_string()));
199201
}

0 commit comments

Comments
 (0)