aboutsummaryrefslogtreecommitdiff
path: root/src/tracing_emitter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tracing_emitter.rs')
-rw-r--r--src/tracing_emitter.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tracing_emitter.rs b/src/tracing_emitter.rs
index 21f40f7..9591839 100644
--- a/src/tracing_emitter.rs
+++ b/src/tracing_emitter.rs
@@ -365,7 +365,10 @@ mod tests {
("single-quoted", Some(AttrValueSyntax::SingleQuoted)),
("double-quoted", Some(AttrValueSyntax::DoubleQuoted)),
] {
- let attr_trace_idx = tag.attributes.get(name).unwrap().trace_idx().unwrap();
+ let (_, Some(attr_trace_idx)) = tag.attributes.value_and_trace_idx(name).unwrap()
+ else {
+ panic!()
+ };
assert_eq!(
tag_trace.attribute_traces[attr_trace_idx].value_syntax(),
syntax,