Skip to content

Commit

Permalink
fixing example code
Browse files Browse the repository at this point in the history
  • Loading branch information
ekump committed Jul 17, 2024
1 parent f6364d3 commit 4d97808
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trace-utils/src/tracer_payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,15 +224,15 @@ impl<'a, T: TraceChunkProcessor + 'a> TryInto<TracerPayloadCollection>
/// let data = &[/* msgpack data */];
///
/// let tracer_header_tags = &TracerHeaderTags::default();
/// let params = TracerPayloadParams::new(
/// let result: Result<TracerPayloadCollection, _> = TracerPayloadParams::new(
/// data,
/// tracer_header_tags,
/// &mut DefaultTraceChunkProcessor,
/// false,
/// TraceEncoding::V04,
/// );
/// )
/// .try_into();
///
/// let result: Result<TracerPayloadCollection, _> = params.try_into();
/// match result {
/// Ok(collection) => println!("Successfully converted to TracerPayloadCollection."),
/// Err(e) => println!("Failed to convert: {:?}", e),
Expand Down

0 comments on commit 4d97808

Please sign in to comment.