Skip to content
Snippets Groups Projects
Unverified Commit 1685c4b8 authored by David M's avatar David M
Browse files

Remove unnecessary ::<u32> on layer id parse()

parent 46f80546
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ impl Layer {
],
required: [
("name", name, |v| Some(v)),
("id", id, |v:String| v.parse::<u32>().ok()),
("id", id, |v:String| v.parse().ok()),
],
TiledError::MalformedAttributes("layer must have a name".to_string())
);
......
......@@ -38,7 +38,7 @@ impl ObjectGroup {
("name", name, |v:String| v.into()),
],
required: [
("id", id, |v:String| v.parse::<u32>().ok()),
("id", id, |v:String| v.parse().ok()),
],
TiledError::MalformedAttributes("object groups must have a name".to_string())
);
......
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