rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Thu, 16 May 2019 02:07:29 +0200
changeset 14985 bcecb3349948
parent 14456 a1613788130d
permissions -rw-r--r--
Display current health in top right corner

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