@@ -22,7 +22,7 @@ fn contextual_parent() {
2222
2323 with_default ( collector, || {
2424 let _guard = tracing:: info_span!( "contextual parent" ) . entered ( ) ;
25- tracing:: info_span!( "span" ) ;
25+ let _ = tracing:: info_span!( "span" ) ;
2626 } ) ;
2727
2828 handle. assert_finished ( ) ;
@@ -45,7 +45,7 @@ fn contextual_parent_wrong_name() {
4545
4646 with_default ( collector, || {
4747 let _guard = tracing:: info_span!( "another parent" ) . entered ( ) ;
48- tracing:: info_span!( "span" ) ;
48+ let _ = tracing:: info_span!( "span" ) ;
4949 } ) ;
5050
5151 handle. assert_finished ( ) ;
@@ -70,7 +70,7 @@ fn contextual_parent_wrong_id() {
7070 with_default ( collector, || {
7171 let _span = tracing:: info_span!( "contextual parent" ) ;
7272 let _guard = tracing:: info_span!( "another parent" ) . entered ( ) ;
73- tracing:: info_span!( "span" ) ;
73+ let _ = tracing:: info_span!( "span" ) ;
7474 } ) ;
7575
7676 handle. assert_finished ( ) ;
@@ -94,7 +94,7 @@ fn contextual_parent_wrong_level() {
9494
9595 with_default ( collector, || {
9696 let _guard = tracing:: debug_span!( "contextual parent" ) . entered ( ) ;
97- tracing:: info_span!( "span" ) ;
97+ let _ = tracing:: info_span!( "span" ) ;
9898 } ) ;
9999
100100 handle. assert_finished ( ) ;
@@ -111,7 +111,7 @@ fn expect_contextual_parent_actual_contextual_root() {
111111 let ( collector, handle) = collector:: mock ( ) . new_span ( span) . run_with_handle ( ) ;
112112
113113 with_default ( collector, || {
114- tracing:: info_span!( "span" ) ;
114+ let _ = tracing:: info_span!( "span" ) ;
115115 } ) ;
116116
117117 handle. assert_finished ( ) ;
@@ -132,7 +132,7 @@ fn expect_contextual_parent_actual_explicit_parent() {
132132
133133 with_default ( collector, || {
134134 let span = tracing:: info_span!( "explicit parent" ) ;
135- tracing:: info_span!( parent: span. id( ) , "span" ) ;
135+ let _ = tracing:: info_span!( parent: span. id( ) , "span" ) ;
136136 } ) ;
137137
138138 handle. assert_finished ( ) ;
@@ -153,7 +153,7 @@ fn expect_contextual_parent_actual_explicit_root() {
153153
154154 with_default ( collector, || {
155155 let _guard = tracing:: info_span!( "contextual parent" ) . entered ( ) ;
156- tracing:: info_span!( parent: None , "span" ) ;
156+ let _ = tracing:: info_span!( parent: None , "span" ) ;
157157 } ) ;
158158
159159 handle. assert_finished ( ) ;
@@ -168,7 +168,7 @@ fn contextual_root() {
168168 let ( collector, handle) = collector:: mock ( ) . new_span ( span) . run_with_handle ( ) ;
169169
170170 with_default ( collector, || {
171- tracing:: info_span!( "span" ) ;
171+ let _ = tracing:: info_span!( "span" ) ;
172172 } ) ;
173173
174174 handle. assert_finished ( ) ;
@@ -188,7 +188,7 @@ fn expect_contextual_root_actual_contextual_parent() {
188188
189189 with_default ( collector, || {
190190 let _guard = tracing:: info_span!( "contextual parent" ) . entered ( ) ;
191- tracing:: info_span!( "span" ) ;
191+ let _ = tracing:: info_span!( "span" ) ;
192192 } ) ;
193193
194194 handle. assert_finished ( ) ;
@@ -208,7 +208,7 @@ fn expect_contextual_root_actual_explicit_parent() {
208208
209209 with_default ( collector, || {
210210 let span = tracing:: info_span!( "explicit parent" ) ;
211- tracing:: info_span!( parent: span. id( ) , "span" ) ;
211+ let _ = tracing:: info_span!( parent: span. id( ) , "span" ) ;
212212 } ) ;
213213
214214 handle. assert_finished ( ) ;
@@ -228,7 +228,7 @@ fn expect_contextual_root_actual_explicit_root() {
228228
229229 with_default ( collector, || {
230230 let _guard = tracing:: info_span!( "contextual parent" ) . entered ( ) ;
231- tracing:: info_span!( parent: None , "span" ) ;
231+ let _ = tracing:: info_span!( parent: None , "span" ) ;
232232 } ) ;
233233
234234 handle. assert_finished ( ) ;
@@ -247,7 +247,7 @@ fn explicit_parent() {
247247
248248 with_default ( collector, || {
249249 let span = tracing:: info_span!( "explicit parent" ) ;
250- tracing:: info_span!( parent: span. id( ) , "span" ) ;
250+ let _ = tracing:: info_span!( parent: span. id( ) , "span" ) ;
251251 } ) ;
252252
253253 handle. assert_finished ( ) ;
@@ -270,7 +270,7 @@ fn explicit_parent_wrong_name() {
270270
271271 with_default ( collector, || {
272272 let span = tracing:: info_span!( "another parent" ) ;
273- tracing:: info_span!( parent: span. id( ) , "span" ) ;
273+ let _ = tracing:: info_span!( parent: span. id( ) , "span" ) ;
274274 } ) ;
275275
276276 handle. assert_finished ( ) ;
@@ -294,7 +294,7 @@ fn explicit_parent_wrong_id() {
294294 with_default ( collector, || {
295295 let _span = tracing:: info_span!( "explicit parent" ) ;
296296 let another_span = tracing:: info_span!( "another parent" ) ;
297- tracing:: info_span!( parent: another_span. id( ) , "span" ) ;
297+ let _ = tracing:: info_span!( parent: another_span. id( ) , "span" ) ;
298298 } ) ;
299299
300300 handle. assert_finished ( ) ;
@@ -316,7 +316,7 @@ fn explicit_parent_wrong_level() {
316316
317317 with_default ( collector, || {
318318 let span = tracing:: debug_span!( "explicit parent" ) ;
319- tracing:: info_span!( parent: span. id( ) , "span" ) ;
319+ let _ = tracing:: info_span!( parent: span. id( ) , "span" ) ;
320320 } ) ;
321321
322322 handle. assert_finished ( ) ;
@@ -337,7 +337,7 @@ fn expect_explicit_parent_actual_contextual_parent() {
337337
338338 with_default ( collector, || {
339339 let _guard = tracing:: info_span!( "contextual parent" ) . entered ( ) ;
340- tracing:: info_span!( "span" ) ;
340+ let _ = tracing:: info_span!( "span" ) ;
341341 } ) ;
342342
343343 handle. assert_finished ( ) ;
@@ -354,7 +354,7 @@ fn expect_explicit_parent_actual_contextual_root() {
354354 let ( collector, handle) = collector:: mock ( ) . new_span ( span) . run_with_handle ( ) ;
355355
356356 with_default ( collector, || {
357- tracing:: info_span!( "span" ) ;
357+ let _ = tracing:: info_span!( "span" ) ;
358358 } ) ;
359359
360360 handle. assert_finished ( ) ;
@@ -375,7 +375,7 @@ fn expect_explicit_parent_actual_explicit_root() {
375375
376376 with_default ( collector, || {
377377 let _guard = tracing:: info_span!( "contextual parent" ) . entered ( ) ;
378- tracing:: info_span!( parent: None , "span" ) ;
378+ let _ = tracing:: info_span!( parent: None , "span" ) ;
379379 } ) ;
380380
381381 handle. assert_finished ( ) ;
@@ -395,7 +395,7 @@ fn explicit_root() {
395395
396396 with_default ( collector, || {
397397 let _guard = tracing:: info_span!( "contextual parent" ) . entered ( ) ;
398- tracing:: info_span!( parent: None , "span" ) ;
398+ let _ = tracing:: info_span!( parent: None , "span" ) ;
399399 } ) ;
400400
401401 handle. assert_finished ( ) ;
@@ -415,7 +415,7 @@ fn expect_explicit_root_actual_contextual_parent() {
415415
416416 with_default ( collector, || {
417417 let _guard = tracing:: info_span!( "contextual parent" ) . entered ( ) ;
418- tracing:: info_span!( "span" ) ;
418+ let _ = tracing:: info_span!( "span" ) ;
419419 } ) ;
420420
421421 handle. assert_finished ( ) ;
@@ -431,7 +431,7 @@ fn expect_explicit_root_actual_contextual_root() {
431431 let ( collector, handle) = collector:: mock ( ) . new_span ( span) . run_with_handle ( ) ;
432432
433433 with_default ( collector, || {
434- tracing:: info_span!( "span" ) ;
434+ let _ = tracing:: info_span!( "span" ) ;
435435 } ) ;
436436
437437 handle. assert_finished ( ) ;
@@ -451,7 +451,7 @@ fn expect_explicit_root_actual_explicit_parent() {
451451
452452 with_default ( collector, || {
453453 let span = tracing:: info_span!( "explicit parent" ) ;
454- tracing:: info_span!( parent: span. id( ) , "span" ) ;
454+ let _ = tracing:: info_span!( parent: span. id( ) , "span" ) ;
455455 } ) ;
456456
457457 handle. assert_finished ( ) ;
@@ -466,7 +466,7 @@ fn explicit_and_contextual_root_is_explicit() {
466466 let ( collector, handle) = collector:: mock ( ) . new_span ( span) . run_with_handle ( ) ;
467467
468468 with_default ( collector, || {
469- tracing:: info_span!( parent: None , "span" ) ;
469+ let _ = tracing:: info_span!( parent: None , "span" ) ;
470470 } ) ;
471471
472472 handle. assert_finished ( ) ;
0 commit comments