Skip to content

Commit 28e3458

Browse files
committed
Fix missing 'dyn's in doc tests following edition upgrade.
1 parent 8c2bd36 commit 28e3458

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/builders.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ impl Dispatch {
607607
(real_min, dispatch)
608608
}
609609

610-
/// Builds this logger into a `Box<log::Log>` and calculates the minimum
610+
/// Builds this logger into a `Box<dyn log::Log>` and calculates the minimum
611611
/// log level needed to have any effect.
612612
///
613613
/// While this method is exposed publicly, [`Dispatch::apply`] is typically
@@ -1051,7 +1051,7 @@ impl Output {
10511051

10521052
/// Returns a logger using arbitrary write object and custom separator.
10531053
///
1054-
/// If the default separator of `\n` is acceptable, an `Box<Write + Send>`
1054+
/// If the default separator of `\n` is acceptable, an `Box<dyn Write + Send>`
10551055
/// instance can be passed into [`Dispatch::chain`] directly.
10561056
///
10571057
/// ```no_run
@@ -1061,7 +1061,7 @@ impl Output {
10611061
///
10621062
/// fern::Dispatch::new()
10631063
/// // as long as we explicitly cast into a type-erased Box
1064-
/// .chain(Box::new(writer) as Box<std::io::Write + Send>)
1064+
/// .chain(Box::new(writer) as Box<dyn std::io::Write + Send>)
10651065
/// # .into_log();
10661066
/// # Ok(())
10671067
/// # }

0 commit comments

Comments
 (0)