rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Thu, 11 Jul 2019 00:53:29 +0200
changeset 15229 f16376e9374f
parent 14440 a1613788130d
permissions -rw-r--r--
Remove all placement restrictions of air attack and friends

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