rust/physfs-rs/src/physfs/util.rs
author alfadur
Mon, 18 May 2020 22:04:38 +0300
changeset 15593 ae6b09ae4dcc
parent 14456 a1613788130d
permissions -rw-r--r--
add whitespace handling

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