Skip to content

Commit

Permalink
Fix missing 'dyn's in doc tests following edition upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
daboross committed Dec 15, 2024
1 parent 8c2bd36 commit 28e3458
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/builders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ impl Dispatch {
(real_min, dispatch)
}

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

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

0 comments on commit 28e3458

Please sign in to comment.