rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Sun, 26 May 2019 15:37:49 +0200
changeset 15075 c59bdec25012
parent 14456 a1613788130d
permissions -rw-r--r--
ACF5: Fix number of turns before 3rd wave appears not always being 7

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