rust/physfs-rs/src/physfs/util.rs
author nemo
Wed, 02 Jan 2019 11:06:34 -0500
changeset 14515 bcb418530a1c
parent 14440 a1613788130d
permissions -rw-r--r--
remove Wuzzy's val checking, add a FIXME to add that to the C implementation

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