Remove unnecessary absolute module paths in image::raster
This commit is contained in:
parent
03fee3106f
commit
86d6d53cfa
1 changed files with 3 additions and 3 deletions
|
|
@ -165,7 +165,7 @@ impl Orientation {
|
||||||
where
|
where
|
||||||
R: std::io::BufRead + std::io::Seek,
|
R: std::io::BufRead + std::io::Seek,
|
||||||
{
|
{
|
||||||
let exif = ::exif::Reader::new().read_from_container(reader)?;
|
let exif = exif::Reader::new().read_from_container(reader)?;
|
||||||
|
|
||||||
Ok(exif
|
Ok(exif
|
||||||
.get_field(::exif::Tag::Orientation, ::exif::In::PRIMARY)
|
.get_field(::exif::Tag::Orientation, ::exif::In::PRIMARY)
|
||||||
|
|
@ -186,8 +186,8 @@ impl Orientation {
|
||||||
fn apply(
|
fn apply(
|
||||||
self,
|
self,
|
||||||
mut img: ::image_rs::ImageBuffer<::image_rs::Bgra<u8>, Vec<u8>>,
|
mut img: ::image_rs::ImageBuffer<::image_rs::Bgra<u8>, Vec<u8>>,
|
||||||
) -> ::image_rs::ImageBuffer<::image_rs::Bgra<u8>, Vec<u8>> {
|
) -> image_rs::ImageBuffer<::image_rs::Bgra<u8>, Vec<u8>> {
|
||||||
use ::image_rs::imageops::*;
|
use image_rs::imageops::*;
|
||||||
|
|
||||||
match self {
|
match self {
|
||||||
Self::FlippedHorizontally => flip_horizontal_in_place(&mut img),
|
Self::FlippedHorizontally => flip_horizontal_in_place(&mut img),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue