diff --git a/CHANGELOG.md b/CHANGELOG.md index 7af9eb34a6d8dbe15a3f1419b1f8260a8b1622c9..893e365d6bf441460b0723b6d485cbb5ebcd5437 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,8 +26,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Tileset now has `image` instead of `images`. - `Image::source` is now a `PathBuf` instead of a `String`. - Functions that took in `&Path` now take `impl AsRef<Path>`. +- Refactored internals. +- Fixed library warnings. - Bumped `zstd` to `0.9`. -- Fix markdown formatting in the `CONTRIBUTORS` file. +- Fixed markdown formatting in the `CONTRIBUTORS` file. ### Added - `Tileset::source` for obtaining where the tileset actually came from. diff --git a/src/layers.rs b/src/layers.rs index cd494087105883d65f6592ab77fdc4b3e6c51c3b..3e8eb0be7e66a3388f0efeb277f2adeeefe4a410 100644 --- a/src/layers.rs +++ b/src/layers.rs @@ -86,7 +86,7 @@ impl Layer { parse_tag!(parser, "layer", { "data" => |attrs| { if infinite { - tiles = parse_infinite_data(parser, attrs, width)?; + tiles = parse_infinite_data(parser, attrs)?; } else { tiles = parse_data(parser, attrs, width)?; } diff --git a/src/util.rs b/src/util.rs index f6ccd52715a285273397cb8af76099ad11307069..50d28e5ebf87d4282ad27ef3b52fb54c677331c2 100644 --- a/src/util.rs +++ b/src/util.rs @@ -83,7 +83,6 @@ pub(crate) fn parse_animation<R: Read>( pub(crate) fn parse_infinite_data<R: Read>( parser: &mut EventReader<R>, attrs: Vec<OwnedAttribute>, - width: u32, ) -> Result<LayerData, TiledError> { let ((e, c), ()) = get_attrs!( attrs,