rust/physfs-rs/src/physfs/util.rs
author unC0Rr
Fri, 19 Jan 2024 13:07:22 +0100
branchtransitional_engine
changeset 16038 7544a7d7c819
parent 14456 a1613788130d
permissions -rw-r--r--
Start on adopting corrosion

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