rust/physfs-rs/src/physfs/util.rs
author alfadur
Sat, 13 Apr 2019 00:08:04 +0300
changeset 14820 e41131607167
parent 14456 a1613788130d
permissions -rw-r--r--
restore setup sending on room join

use std::io::{ Error, ErrorKind };
use super::PhysFSContext;

pub fn physfs_error_as_io_error() -> Error {
    Error::new(ErrorKind::Other,
               &format!("PhysicsFS Error: `{}`", PhysFSContext::get_last_error())[..])
}