From 425c47bfea38872942edc9afdf4ebde8f4f9025e Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 21 Feb 2022 18:00:07 -0800 Subject: fix(divina): human_panic Metadata into() --- Makefile.toml | 1 + crates/divina/src/lib.rs | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile.toml b/Makefile.toml index af2911f..6cf7c70 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -3,6 +3,7 @@ # ------------- [env] CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true +LIBCLANG_PATH = "D:\\software\\LLVM-12.0.1-win64\\lib" # ------------ # | Wrappers | diff --git a/crates/divina/src/lib.rs b/crates/divina/src/lib.rs index 675efd2..2ce057e 100644 --- a/crates/divina/src/lib.rs +++ b/crates/divina/src/lib.rs @@ -67,9 +67,9 @@ impl Divina { pub fn setup() { dotenv::dotenv().ok(); human_panic::setup_panic!(Metadata { - version: env!("CARGO_PKG_VERSION"), - name: env!("CARGO_PKG_NAME"), - authors: env!("CARGO_PKG_AUTHORS"), - homepage: env!("CARGO_PKG_HOMEPAGE"), + version: env!("CARGO_PKG_VERSION").into(), + name: env!("CARGO_PKG_NAME").into(), + authors: env!("CARGO_PKG_AUTHORS").into(), + homepage: env!("CARGO_PKG_HOMEPAGE").into(), }); } -- cgit v1.2.3