rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Mon, 15 Jul 2019 21:13:01 +0200
changeset 15244 44533b2e4fb1
parent 14435 a1613788130d
permissions -rw-r--r--
Drowning gears: Delete big gears when they're *completely* out of visible area

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