We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10cabc1 commit af1bbd3Copy full SHA for af1bbd3
src/decoder.rs
@@ -130,8 +130,8 @@ impl<R: Read> Decoder<R> {
130
/// Returns raw exif data, starting at the TIFF header, if the image contains any.
131
///
132
/// The returned value will be `None` until a call to `decode` has returned `Ok`.
133
- pub fn exif_data(&self) -> Option<Vec<u8>> {
134
- self.exif_data.as_ref().map(|v| v.clone())
+ pub fn exif_data(&self) -> Option<&[u8]> {
+ self.exif_data.as_ref().map(|v| v.as_slice())
135
}
136
137
/// Returns the embeded icc profile if the image contains one.
0 commit comments