From fa34bc9895497b2fd35f5993fbe9bb23a3da55f9 Mon Sep 17 00:00:00 2001 From: KAMADA Ken'ichi Date: Sun, 15 Dec 2019 21:11:20 +0900 Subject: [PATCH] Derive Clone trait for Value and Field. --- src/tiff.rs | 2 +- src/value.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tiff.rs b/src/tiff.rs index 26ded7e..fe9ac1f 100644 --- a/src/tiff.rs +++ b/src/tiff.rs @@ -99,7 +99,7 @@ impl IfdEntry { } /// A TIFF field. -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Field { /// The tag of this field. pub tag: Tag, diff --git a/src/value.rs b/src/value.rs index 1f47629..f50e5eb 100644 --- a/src/value.rs +++ b/src/value.rs @@ -29,7 +29,7 @@ use std::fmt; use crate::endian::Endian; /// Types and values of TIFF fields (for Exif attributes). -#[derive(Debug)] +#[derive(Debug, Clone)] pub enum Value { /// Vector of 8-bit unsigned integers. Byte(Vec),