From bef6702a8f2771d2a1d5f973a854452ecd66efdc Mon Sep 17 00:00:00 2001 From: Jingkai Mao Date: Wed, 13 Dec 2017 14:57:53 +0800 Subject: [PATCH] Use $crate instead of ::imgui. --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index cf36656..99d8ecf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -51,12 +51,12 @@ pub struct ImGui { macro_rules! im_str { ($e:tt) => ({ unsafe { - ::imgui::ImStr::from_utf8_with_nul_unchecked(concat!($e, "\0").as_bytes()) + $crate::ImStr::from_utf8_with_nul_unchecked(concat!($e, "\0").as_bytes()) } }); ($e:tt, $($arg:tt)*) => ({ unsafe { - &::imgui::ImString::from_utf8_with_nul_unchecked( + &$crate::ImString::from_utf8_with_nul_unchecked( format!(concat!($e, "\0"), $($arg)*).into_bytes()) } })