rust/physfs-rs/src/physfs/util.rs
author raptor <buckyballreaction@gmail.com>
Mon, 26 Aug 2019 15:44:03 -0600
changeset 15363 c5934cdeecb6
parent 14435 a1613788130d
permissions -rw-r--r--
Merge

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