Skip to content

Commit

Permalink
chore(ffi): Format code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Aug 19, 2024
1 parent 9d7dd1a commit eeb325a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bindings/matrix-sdk-ffi/src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,19 @@ where

if let Some(scope) = ctx.event_scope() {
writer.write_str(" | spans: ")?;

let mut first = true;

for span in scope.from_root() {
if !first {
writer.write_str(" > ")?;
}

first = false;
write!(writer, "{}", span.metadata().name())?;

let ext = span.extensions();
if let Some(fields) = &ext.get::<FormattedFields<N>>() {
write!(writer, "{}", span.name())?;

if let Some(fields) = &span.extensions().get::<FormattedFields<N>>() {
if !fields.is_empty() {
write!(writer, "{{{fields}}}")?;
}
Expand Down

0 comments on commit eeb325a

Please sign in to comment.