Skip to content

Commit

Permalink
Fix String in macro for use full package name for avoid conflict.
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Mar 9, 2023
1 parent 4e98c83 commit cf403db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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('}');

Expand Down

0 comments on commit cf403db

Please sign in to comment.