rust/physfs-rs/src/physfs/util.rs
author alfadur
Wed, 28 Aug 2019 00:34:26 +0300
changeset 15376 24a9afbf33c6
parent 14440 a1613788130d
permissions -rw-r--r--
add multicomponent iteration test

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