rust/physfs-rs/src/physfs/util.rs
changeset 14435 a1613788130d
equal deleted inserted replaced
14434:632dfc73cf83 14435:a1613788130d
       
     1 use std::io::{ Error, ErrorKind };
       
     2 use super::PhysFSContext;
       
     3 
       
     4 pub fn physfs_error_as_io_error() -> Error {
       
     5     Error::new(ErrorKind::Other,
       
     6                &format!("PhysicsFS Error: `{}`", PhysFSContext::get_last_error())[..])
       
     7 }