mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'juliancoffee/fix_testserver' into 'master'
Make test-server compile again See merge request veloren/veloren!2974
This commit is contained in:
commit
bcba2aae7e
@ -1,7 +1,7 @@
|
|||||||
|
#[cfg(not(feature = "worldgen"))]
|
||||||
|
use crate::test_world::{IndexOwned, World};
|
||||||
#[cfg(feature = "persistent_world")]
|
#[cfg(feature = "persistent_world")]
|
||||||
use crate::TerrainPersistence;
|
use crate::TerrainPersistence;
|
||||||
#[cfg(not(feature = "worldgen"))]
|
|
||||||
use test_world::{IndexOwned, World};
|
|
||||||
#[cfg(feature = "worldgen")]
|
#[cfg(feature = "worldgen")]
|
||||||
use world::{IndexOwned, World};
|
use world::{IndexOwned, World};
|
||||||
|
|
||||||
|
@ -26,10 +26,7 @@ pub struct IndexOwned;
|
|||||||
pub struct IndexRef<'a>(&'a IndexOwned);
|
pub struct IndexRef<'a>(&'a IndexOwned);
|
||||||
|
|
||||||
impl IndexOwned {
|
impl IndexOwned {
|
||||||
pub fn reload_colors_if_changed<R>(
|
pub fn reload_if_changed<R>(&mut self, _reload: impl FnOnce(&mut Self) -> R) -> Option<R> {
|
||||||
&mut self,
|
|
||||||
_reload: impl FnOnce(&mut Self) -> R,
|
|
||||||
) -> Option<R> {
|
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user