Replace std::time with the wasm-compatible crate instant
authorBernie Innocenti <bernie@codewiz.org>
Tue, 31 Mar 2020 15:41:29 +0000 (00:41 +0900)
committerBernie Innocenti <bernie@codewiz.org>
Tue, 31 Mar 2020 15:41:29 +0000 (00:41 +0900)
main.rs

diff --git a/main.rs b/main.rs
index 4aa56cbf57c9d5e0517803c6153d380b811a8ad2..d6cd210c2cfa406151f3784f91536fc7192cc070 100644 (file)
--- a/main.rs
+++ b/main.rs
@@ -6,7 +6,7 @@ use glium::{Display, Program, Surface, uniform};
 use mandelwow_lib::*;
 use std::f32::consts::PI;
 use std::rc::Rc;
-use std::time::{Duration, Instant};
+use instant::{Duration, Instant};
 
 #[cfg(target_os = "emscripten")]
 use std::os::raw::{c_int, c_void};