Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fix(telemetry): remove needless Box (#2612)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 authored and rphmeier committed May 17, 2019
1 parent 563096e commit b35dc62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/telemetry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ pub const CONSENSUS_INFO: &str = "0";
/// Multiply logging to all drains. This is similar to `slog::Duplicate`, which is
/// limited to two drains though and doesn't support dynamic nesting at runtime.
#[derive(Debug, Clone)]
pub struct Multiply<D: Drain> (pub Vec<Box<D>>);
pub struct Multiply<D: Drain> (pub Vec<D>);

impl<D: Drain> Multiply<D> {
pub fn new(v: Vec<Box<D>>) -> Self {
pub fn new(v: Vec<D>) -> Self {
Multiply(v)
}
}
Expand Down

0 comments on commit b35dc62

Please sign in to comment.