rust/physfs-rs/src/physfs/util.rs
author alfadur
Fri, 04 Oct 2019 23:23:35 +0300
changeset 15441 61a0bd0bb021
parent 14435 a1613788130d
permissions -rw-r--r--
refactor root handler

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