rust/physfs-rs/src/physfs/util.rs
author alfadur
Sat, 25 Mar 2023 04:14:07 +0300
changeset 15939 4a8e6f9d5133
parent 14435 a1613788130d
permissions -rw-r--r--
remove events

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