mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 05:21:08 +00:00
fix(telemetry): remove needless Box (#2612)
This commit is contained in:
committed by
Robert Habermeier
parent
9ad96e50ac
commit
7e525dc603
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user