rust/physfs-rs/src/physfs/util.rs
author alfadur
Mon, 28 Oct 2019 00:31:41 +0300
changeset 15487 91f0c5ec37b5
parent 14435 a1613788130d
permissions -rw-r--r--
move change_master into the server

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())[..])
}