Resolve all warnings.

This commit is contained in:
hal8174 2025-05-28 19:27:55 +02:00
parent 86d009fb4c
commit 96e7085e37
Signed by: hal8174
SSH key fingerprint: SHA256:JwuqS+eVfISfKr+DkDQ6NWAbGd1jFAHkPpCM1yCnlTs
10 changed files with 92 additions and 86 deletions

View file

@ -19,6 +19,12 @@ impl<R: Rng> BasicCornell<R> {
}
}
impl<R: Rng> Default for BasicCornell<R> {
fn default() -> Self {
Self::new()
}
}
impl<R: Rng + 'static> ExampleScene<R> for BasicCornell<R> {
fn get_scene(&self) -> Box<dyn Scene<R> + Sync> {
let s = self.scene.get_or_init(|| {