rust/physfs-rs/src/physfs/util.rs
author nemo
Wed, 07 Sep 2022 17:28:08 -0400
changeset 15858 3513c9122882
parent 14435 a1613788130d
permissions -rw-r--r--
merge to trunk

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