cargo fix --edition and add edition="2018" to Cargo.toml.

This commit is contained in:
2019-02-07 16:36:55 -08:00
parent 1be9c800a7
commit c8f5bf9e19
36 changed files with 265 additions and 263 deletions

View File

@@ -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::*;