rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Fri, 01 Nov 2019 23:35:01 +0100
changeset 15500 5eda4d7056bc
parent 14435 a1613788130d
permissions -rw-r--r--
ASA death02: Don't set hero health if enemy hurts itself

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