rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Thu, 18 Jul 2019 03:25:15 +0200
changeset 15251 9be05ae1b726
parent 14435 a1613788130d
permissions -rw-r--r--
Use minimum size for keybinder category list

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