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),