From 5e5f70866cf7d86f3eae247c215ee017d9e826ae Mon Sep 17 00:00:00 2001 From: Alejandro Perea <alexpro820@gmail.com> Date: Sun, 20 Mar 2022 00:03:30 +0100 Subject: [PATCH] Fix deprecation references (#196) --- src/map.rs | 4 ++-- src/tileset.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map.rs b/src/map.rs index 9fb04d0..a8903ee 100644 --- a/src/map.rs +++ b/src/map.rs @@ -70,7 +70,7 @@ impl Map { /// the library won't read from the filesystem if it is not required to do so. /// /// The tileset cache is used to store and refer to any tilesets found along the way. - #[deprecated(since = "0.10.1", note = "Use `Loader::parse_tmx_map_from` instead")] + #[deprecated(since = "0.10.1", note = "Use `Loader::load_tmx_map_from` instead")] pub fn parse_reader<R: Read>( reader: R, path: impl AsRef<Path>, @@ -83,7 +83,7 @@ impl Map { /// files will be loaded relative to the path given. /// /// The tileset cache is used to store and refer to any tilesets found along the way. - #[deprecated(since = "0.10.1", note = "Use `Loader::parse_tmx_map` instead")] + #[deprecated(since = "0.10.1", note = "Use `Loader::load_tmx_map` instead")] pub fn parse_file(path: impl AsRef<Path>, cache: &mut impl ResourceCache) -> Result<Self> { let reader = File::open(path.as_ref()).map_err(|err| Error::CouldNotOpenFile { path: path.as_ref().to_owned(), diff --git a/src/tileset.rs b/src/tileset.rs index 5437606..41bbddd 100644 --- a/src/tileset.rs +++ b/src/tileset.rs @@ -97,7 +97,7 @@ impl Tileset { /// /// assert_eq!(tileset.image.unwrap().source, PathBuf::from("assets/tilesheet.png")); /// ``` - #[deprecated(since = "0.10.1", note = "Use `Loader::parse_tsx_tileset` instead")] + #[deprecated(since = "0.10.1", note = "Use `Loader::load_tsx_tileset_from` instead")] pub fn parse_reader<R: Read>(reader: R, path: impl AsRef<Path>) -> Result<Self> { crate::parse::xml::parse_tileset(reader, path.as_ref()) } -- GitLab