From: Bernie Innocenti Date: Tue, 31 Mar 2020 15:41:29 +0000 (+0900) Subject: Replace std::time with the wasm-compatible crate instant X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=94fdc78f7f906b1afefc0075f31f35dab18d4f1c;p=mandelwow.git Replace std::time with the wasm-compatible crate instant --- diff --git a/main.rs b/main.rs index 4aa56cb..d6cd210 100644 --- 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};