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

@@ -1,8 +1,8 @@
/// Implements the concepts from https://lodev.org/cgtutor/randomnoise.html
use rand;
use noise::NoiseSource;
use vec3::Vec3;
use crate::noise::NoiseSource;
use crate::vec3::Vec3;
const NOISE_SIZE: usize = 128;
pub struct Lode {

View File

@@ -3,7 +3,7 @@ pub mod perlin;
use std::f32::consts::PI;
use vec3::Vec3;
use crate::vec3::Vec3;
pub trait NoiseSource: Send + Sync {
/// value returns noise on the interval [0., 1.).

View File

@@ -2,9 +2,9 @@
#![cfg_attr(feature = "cargo-clippy", allow(many_single_char_names))]
use rand::Rng;
use noise::NoiseSource;
use vec3::dot;
use vec3::Vec3;
use crate::noise::NoiseSource;
use crate::vec3::dot;
use crate::vec3::Vec3;
pub struct Perlin {
ran_vec: Vec<Vec3>,