Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
rs-tiled
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Microhacks
rs-tiled
Commits
5e5f7086
Unverified
Commit
5e5f7086
authored
3 years ago
by
Alejandro Perea
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix deprecation references (#196)
parent
7c072c9f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/map.rs
+2
-2
2 additions, 2 deletions
src/map.rs
src/tileset.rs
+1
-1
1 addition, 1 deletion
src/tileset.rs
with
3 additions
and
3 deletions
src/map.rs
+
2
−
2
View file @
5e5f7086
...
...
@@ -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
(),
...
...
This diff is collapsed.
Click to expand it.
src/tileset.rs
+
1
−
1
View file @
5e5f7086
...
...
@@ -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
())
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment