improve code

This commit is contained in:
houseme
2025-04-22 09:14:09 +08:00
parent 6c70c03985
commit 0ed92b3b6f
12 changed files with 257 additions and 36 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ pub enum Error {
}
impl Error {
pub(crate) fn custom(msg: &str) -> Error {
pub fn custom(msg: &str) -> Error {
Self::Custom(msg.to_string())
}
}