From 218c65e8511e511c8ed6a2de28f8527657cea271 Mon Sep 17 00:00:00 2001 From: rascul Date: Sun, 24 Jul 2022 10:48:08 -0500 Subject: [PATCH] give full path to json! macro --- src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macros.rs b/src/macros.rs index 34a43fa..8992296 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -6,7 +6,7 @@ macro_rules! render_error { match $e { Ok(r) => r, Err(e) => { - let data = json!({ + let data = serde_json::json!({ "error": e.to_string(), }); let body = match $hb.render("error", &data) {