rust/physfs-rs/src/physfs/util.rs
author alfadur
Mon, 26 Aug 2019 19:05:28 +0300
changeset 15363 b5e0a39856fd
parent 14440 a1613788130d
permissions -rw-r--r--
complete basic ecs

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