rust/physfs-rs/src/physfs/util.rs
author nemo
Wed, 19 Jun 2019 22:36:11 -0400
changeset 15188 7ae8ec7a9a8e
parent 14440 a1613788130d
permissions -rw-r--r--
consistent indentation with rest of unit. was just to help me read this block

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