rust/physfs-rs/src/physfs/util.rs
author alfadur
Thu, 11 Apr 2019 01:13:29 +0300
changeset 14791 8ecdb5c6bb2a
parent 14440 a1613788130d
permissions -rw-r--r--
implement info, registered only & super power messages

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