Fix a typo and a "tag value" that has been overlooked.
This commit is contained in:
parent
0949abc4ac
commit
62bf989fa9
|
@ -75,7 +75,7 @@ impl Reader {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cheat on the type system and erase the lifetime by transmute().
|
// Cheat on the type system and erase the lifetime by transmute().
|
||||||
// The scope releases the innter `v` to unborrow `buf`.
|
// The scope releases the inner `v` to unborrow `buf`.
|
||||||
let (v, le) = {
|
let (v, le) = {
|
||||||
let (v, le) = try!(tiff::parse_exif(&buf));
|
let (v, le) = try!(tiff::parse_exif(&buf));
|
||||||
(unsafe { mem::transmute(v) }, le) };
|
(unsafe { mem::transmute(v) }, le) };
|
||||||
|
|
|
@ -93,7 +93,7 @@ impl fmt::Display for Tag {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// An enum that indicates how a tag value is interpreted.
|
/// An enum that indicates how a tag number is interpreted.
|
||||||
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||||
pub enum Context {
|
pub enum Context {
|
||||||
/// TIFF attributes defined in the TIFF Rev. 6.0 specification.
|
/// TIFF attributes defined in the TIFF Rev. 6.0 specification.
|
||||||
|
|
Loading…
Reference in New Issue