rust/physfs-rs/src/physfs/util.rs
author alfadur
Mon, 09 May 2022 19:10:43 +0300
changeset 15842 4172debdff61
parent 14435 a1613788130d
permissions -rw-r--r--
fix minigun bullet collision detection

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