From 94fdc78f7f906b1afefc0075f31f35dab18d4f1c Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Wed, 1 Apr 2020 00:41:29 +0900 Subject: [PATCH] Replace std::time with the wasm-compatible crate instant --- main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}; -- 2.25.1