rust/physfs-rs/src/physfs/util.rs
author alfadur
Wed, 10 Apr 2019 19:30:08 +0300
changeset 14784 8390d5e4e39c
parent 14435 a1613788130d
permissions -rw-r--r--
implememg global&delegate 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())[..])
}