cargo fix --edition and add edition="2018" to Cargo.toml.
This commit is contained in:
@@ -5,11 +5,11 @@ use std::time::Instant;
|
||||
use rand;
|
||||
use rand::Rng;
|
||||
|
||||
use aabb::surrounding_box;
|
||||
use aabb::AABB;
|
||||
use hitable::Hit;
|
||||
use hitable::HitRecord;
|
||||
use ray::Ray;
|
||||
use crate::aabb::surrounding_box;
|
||||
use crate::aabb::AABB;
|
||||
use crate::hitable::Hit;
|
||||
use crate::hitable::HitRecord;
|
||||
use crate::ray::Ray;
|
||||
|
||||
enum BVHNode {
|
||||
Leaf(Box<Hit>),
|
||||
@@ -229,12 +229,12 @@ impl Hit for BVH {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use aabb::AABB;
|
||||
use material::Lambertian;
|
||||
use material::Metal;
|
||||
use sphere::Sphere;
|
||||
use texture::ConstantTexture;
|
||||
use vec3::Vec3;
|
||||
use crate::aabb::AABB;
|
||||
use crate::material::Lambertian;
|
||||
use crate::material::Metal;
|
||||
use crate::sphere::Sphere;
|
||||
use crate::texture::ConstantTexture;
|
||||
use crate::vec3::Vec3;
|
||||
|
||||
use super::*;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user