From 9e3f4fe0834d64bfdf27ad53f6c55ae57c754201 Mon Sep 17 00:00:00 2001 From: David Palm Date: Sun, 18 Oct 2020 23:55:03 +0200 Subject: [PATCH] No need to be Clone --- tracing-core/src/field.rs | 1 - tracing-core/src/metadata.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/tracing-core/src/field.rs b/tracing-core/src/field.rs index 332c902998..4cbdcaa3d7 100644 --- a/tracing-core/src/field.rs +++ b/tracing-core/src/field.rs @@ -70,7 +70,6 @@ pub struct Field { pub struct Empty; /// Describes the fields present on a span. -#[derive(Clone)] pub struct FieldSet { /// The names of each field on the described span. names: &'static [&'static str], diff --git a/tracing-core/src/metadata.rs b/tracing-core/src/metadata.rs index 5b9f28515b..816c9cd28d 100644 --- a/tracing-core/src/metadata.rs +++ b/tracing-core/src/metadata.rs @@ -59,7 +59,6 @@ use core::{ /// [module path]: Self::module_path /// [`Subscriber`]: super::subscriber::Subscriber /// [callsite identifier]: super::callsite::Identifier -#[derive(Clone)] pub struct Metadata<'a> { /// The name of the span described by this metadata. name: Cow<'a, str>,