spirv: relax some : 'static bounds

This commit is contained in:
2022-07-27 17:11:10 -07:00
parent 9e07189b12
commit 5a0766451d
2 changed files with 7 additions and 16 deletions

View File

@@ -20,7 +20,7 @@ pub trait MaterialSim: GenericSim {
type Material: PartialEq;
fn put_material<C: Coord, M: Into<Self::Material>>(&mut self, pos: C, mat: M);
// XXX: would ideally return by-ref, but some backends need to return a handle instead
// TODO: would ideally return by-ref
fn get_material<C: Coord>(&self, pos: C) -> Self::Material;
fn fill_region_using<C, Reg, F, M>(&mut self, region: &Reg, f: F)
@@ -121,7 +121,6 @@ pub trait MaterialSim: GenericSim {
}
}
// XXX the Send/Sync bounds here could be removed with some refactoring
pub trait GenericSim: SampleableSim {
fn step(&mut self) {
// XXX: try not to exercise this path! NoopStimulus is probably a lot of waste.
@@ -344,7 +343,7 @@ impl<'a> dyn SampleableSim + 'a {
}
}
// XXX the Send/Sync bounds here could be removed with some refactoring
// TODO: the Send/Sync bounds here could be removed with some refactoring
pub trait SampleableSim: Send + Sync {
fn sample(&self, pos: Meters) -> Sample;