refactor(profile): improve error handling for file not found case

refactor(merge): simplify deep_merge function signature
chore: remove unused fmt_bytes function and related tests
chore: clean up help module by removing unused macros
chore: remove format module from utils
This commit is contained in:
Tunglies
2025-12-26 22:15:09 +08:00
parent 9c6f5bc991
commit bfb18cf003
5 changed files with 4 additions and 47 deletions
-15
View File
@@ -134,18 +134,3 @@ pub fn linux_elevator() -> String {
Err(_) => "sudo".to_string(),
}
}
/// return the string literal error
#[macro_export]
macro_rules! ret_err {
($str: expr) => {
return Err($str.into())
};
}
#[macro_export]
macro_rules! t {
($en:expr, $zh:expr, $use_zh:expr) => {
if $use_zh { $zh } else { $en }
};
}