diff --git a/src/io/reader.rs b/src/io/image_reader.rs similarity index 99% rename from src/io/reader.rs rename to src/io/image_reader.rs index 666265c3ad..594786bddb 100644 --- a/src/io/reader.rs +++ b/src/io/image_reader.rs @@ -208,7 +208,7 @@ impl<'a, R: 'a + BufRead + Seek> ImageReader { /// /// ## Usage /// - /// This supplements the path based type deduction from [`open`](Reader::open) with content based deduction. + /// This supplements the path based type deduction from [`ImageReader::open()`] with content based deduction. /// This is more common in Linux and UNIX operating systems and also helpful if the path can /// not be directly controlled. /// diff --git a/src/io/mod.rs b/src/io/mod.rs index 08c6c0f171..21ab00d5b9 100644 --- a/src/io/mod.rs +++ b/src/io/mod.rs @@ -3,9 +3,9 @@ use crate::{error, ColorType, ImageError, ImageResult}; pub(crate) mod free_functions; -mod reader; +mod image_reader; -pub use self::reader::ImageReader; +pub use self::image_reader::ImageReader; /// Set of supported strict limits for a decoder. #[derive(Clone, Debug, Default, Eq, PartialEq, Hash)]