diff --git a/src/map.rs b/src/map.rs index 9fb04d023c8b8f718d1a3668ce6e0059bf282cf1..a8903ee86b9a8ebbe73285eebb275769eb679d81 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 54376067d24d1ba172708e1c995d29a0016e43b5..41bbddd45619b85975250f27a9fb4c5cb0c505b4 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()) }