Remove unneeded mut
This commit is contained in:
parent
15d93ea74b
commit
8433d0259e
1 changed files with 3 additions and 3 deletions
|
@ -69,7 +69,7 @@ impl Map {
|
||||||
engine: &Engine,
|
engine: &Engine,
|
||||||
scene: &mut Scene,
|
scene: &mut Scene,
|
||||||
maps: &mut HashMap<String, AssetPath>,
|
maps: &mut HashMap<String, AssetPath>,
|
||||||
tiles: &mut HashMap<String, AssetPath>,
|
tiles: &HashMap<String, AssetPath>,
|
||||||
entity_manager: &mut impl AssetLoader,
|
entity_manager: &mut impl AssetLoader,
|
||||||
build_path: impl Fn(&str) -> AssetPath,
|
build_path: impl Fn(&str) -> AssetPath,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
|
@ -88,7 +88,7 @@ impl Map {
|
||||||
engine: &Engine,
|
engine: &Engine,
|
||||||
scene: &mut Scene,
|
scene: &mut Scene,
|
||||||
path: AssetPath,
|
path: AssetPath,
|
||||||
tiles: &mut HashMap<String, AssetPath>,
|
tiles: &HashMap<String, AssetPath>,
|
||||||
entity_manager: &mut impl AssetLoader,
|
entity_manager: &mut impl AssetLoader,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
let sql_connection = MapDataBase::load(&path.full_path())?;
|
let sql_connection = MapDataBase::load(&path.full_path())?;
|
||||||
|
@ -665,7 +665,7 @@ impl Map {
|
||||||
engine: &Engine,
|
engine: &Engine,
|
||||||
scene: &mut Scene,
|
scene: &mut Scene,
|
||||||
data_base: MapDataBase,
|
data_base: MapDataBase,
|
||||||
tiles: &mut HashMap<String, AssetPath>,
|
tiles: &HashMap<String, AssetPath>,
|
||||||
entity_manager: &mut impl AssetLoader,
|
entity_manager: &mut impl AssetLoader,
|
||||||
) -> Result<Map> {
|
) -> Result<Map> {
|
||||||
let map_tiles = data_base.read_tiles()?;
|
let map_tiles = data_base.read_tiles()?;
|
||||||
|
|
Loading…
Reference in a new issue