veloren/server/src/error.rs
2020-02-01 21:39:39 +01:00

12 lines
204 B
Rust

use common::net::PostError;
#[derive(Debug)]
pub enum Error {
Network(PostError),
Other(String),
}
impl From<PostError> for Error {
fn from(err: PostError) -> Self { Error::Network(err) }
}