Skip to content
Snippets Groups Projects
Commit 37843c2a authored by alexdevteam's avatar alexdevteam
Browse files

Fix warning

parent 2bc096bf
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
......@@ -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)?;
}
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment