Make test-server compile again

This commit is contained in:
juliancoffee 2021-10-29 23:13:30 +03:00
parent cd2f7ad83a
commit 1dc53dad3a
2 changed files with 3 additions and 6 deletions

View File

@ -1,7 +1,7 @@
#[cfg(not(feature = "worldgen"))]
use crate::test_world::{IndexOwned, World};
#[cfg(feature = "persistent_world")]
use crate::TerrainPersistence;
#[cfg(not(feature = "worldgen"))]
use test_world::{IndexOwned, World};
#[cfg(feature = "worldgen")]
use world::{IndexOwned, World};

View File

@ -26,10 +26,7 @@ pub struct IndexOwned;
pub struct IndexRef<'a>(&'a IndexOwned);
impl IndexOwned {
pub fn reload_colors_if_changed<R>(
&mut self,
_reload: impl FnOnce(&mut Self) -> R,
) -> Option<R> {
pub fn reload_if_changed<R>(&mut self, _reload: impl FnOnce(&mut Self) -> R) -> Option<R> {
None
}