cargo fmt.

This commit is contained in:
2022-07-28 21:39:00 -07:00
parent 51185e9e84
commit 78f7ca8956
41 changed files with 329 additions and 406 deletions

View File

@@ -1,15 +1,12 @@
#[macro_use]
extern crate criterion;
use criterion::Criterion;
use criterion::ParameterizedBenchmark;
use criterion::{Criterion, ParameterizedBenchmark};
use rtiow::hitable::Hit;
use rtiow::material::Lambertian;
use rtiow::ray::Ray;
use rtiow::sphere::Sphere;
use rtiow::texture::ConstantTexture;
use rtiow::vec3::Vec3;
use rtiow::{
hitable::Hit, material::Lambertian, ray::Ray, sphere::Sphere, texture::ConstantTexture,
vec3::Vec3,
};
fn criterion_benchmark(c: &mut Criterion) {
let sphere = Sphere::new(