From cf403db46d1f207feb98a38cc7694bf83ac17044 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Thu, 9 Mar 2023 16:48:50 +0800 Subject: [PATCH] Fix String in macro for use full package name for avoid conflict. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index b3c4fe8..209508f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -115,7 +115,7 @@ macro_rules! t { let mut message = crate::translate($locale, $key); $( let var = stringify!($var_name).trim_matches('"'); - let mut holder = String::from("%{"); + let mut holder = std::string::String::from("%{"); holder.push_str(var); holder.push('}');