Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: impl field::Value for Option<T> (tokio-rs#1585)
## Motivation Building a span with some field might be `None` is bother now. Before: ```rust let span = info!("example", data = Empty ); if let Some(data) = foo() { span.record("data", &data); } ``` After: ```rust let span = info!("example", data = foo() ); ``` Co-authored-by: DCjanus <[email protected]> Co-authored-by: Eliza Weisman <[email protected]>
- Loading branch information