Skip to content

Commit

Permalink
core: fix missing dyn in Visit docs example (#1595)
Browse files Browse the repository at this point in the history
Co-authored-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
matklad and hawkw committed Oct 1, 2021
1 parent 72b07a1 commit b6544e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracing-core/src/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ pub struct Iter {
/// }
///
/// impl<'a> Visit for StringVisitor<'a> {
/// fn record_debug(&mut self, field: &Field, value: &fmt::Debug) {
/// fn record_debug(&mut self, field: &Field, value: &dyn fmt::Debug) {
/// write!(self.string, "{} = {:?}; ", field.name(), value).unwrap();
/// }
/// }
Expand Down

0 comments on commit b6544e7

Please sign in to comment.