rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Wed, 08 Jul 2020 19:11:00 +0200
changeset 15728 f2930fe1b6d0
parent 14456 a1613788130d
permissions -rw-r--r--
AI: Laser sight removes upper range cap for shotgun

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