rust/physfs-rs/src/physfs/util.rs
author raptor <buckyballreaction@gmail.com>
Sun, 25 Aug 2019 19:39:29 -0600
changeset 15361 5c0479d0ed5b
parent 14435 a1613788130d
permissions -rw-r--r--
Remove last vestiges of GLEW

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