From 37843c2ab41f5ce929d1a5b6e2a017cb4ca42aa6 Mon Sep 17 00:00:00 2001
From: alexdevteam <alexpro820@gmail.com>
Date: Wed, 29 Dec 2021 23:18:05 +0100
Subject: [PATCH] Fix warning

---
 CHANGELOG.md  | 4 +++-
 src/layers.rs | 2 +-
 src/util.rs   | 1 -
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7af9eb3..893e365 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 cd49408..3e8eb0b 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 f6ccd52..50d28e5 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,
-- 
GitLab