rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Sun, 12 May 2019 04:16:40 +0200
changeset 14920 06af4f0a92bd
parent 14435 a1613788130d
permissions -rw-r--r--
Fix Birdy being drawn behind hogs and other gears (bug #453)

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