mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-21 00:20:53 +00:00
remove s2e function
This commit is contained in:
parent
0fd5d85155
commit
31e8d4791e
2 changed files with 7 additions and 11 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue