rust/physfs-rs/src/physfs/util.rs
author unc0rr
Thu, 13 Dec 2018 23:44:46 +0100
changeset 14435 a1613788130d
permissions -rw-r--r--
Adopt physfs-rs lib and adapt it to recent std library, remove global mutex

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