fix: user agent not works

This commit is contained in:
GyDi
2022-03-11 19:50:51 +08:00
parent b2a24c7abd
commit cf00c9476f
3 changed files with 38 additions and 7 deletions

View File

@@ -68,7 +68,7 @@ macro_rules! wrap_err {
/// return the string literal error
#[macro_export]
macro_rules! ret_err {
($str: literal) => {
($str: expr) => {
return Err($str.into())
};
}