remove s2e function

This commit is contained in:
ssrlive 2023-03-24 16:32:47 +08:00
parent 0fd5d85155
commit 31e8d4791e
2 changed files with 7 additions and 11 deletions

View file

@ -3,10 +3,6 @@ pub struct Error {
message: String,
}
pub fn s2e(s: &str) -> Error {
Error::from(s)
}
impl From<std::io::Error> for Error {
fn from(err: std::io::Error) -> Self {
From::<String>::from(err.to_string())