rust/physfs-rs/src/physfs/util.rs
author nemo
Sun, 24 Mar 2024 14:19:02 -0400
branch1.0.0
changeset 16023 fcc98c953b5e
parent 14456 a1613788130d
permissions -rw-r--r--
suppress this message too.

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