rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Thu, 16 May 2019 06:41:56 +0200
changeset 14967 9939134b566d
parent 14435 a1613788130d
permissions -rw-r--r--
Show more health-related icons 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())[..])
}