Skip to content
Snippets Groups Projects
Commit 7e525dc6 authored by Niklas Adolfsson's avatar Niklas Adolfsson Committed by asynchronous rob
Browse files

fix(telemetry): remove needless `Box` (#2612)

parent 9ad96e50
No related merge requests found
......@@ -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)
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment