rust/physfs-rs/src/physfs/util.rs
author unC0Rr
Mon, 26 Aug 2019 12:36:07 +0200
changeset 15360 09fc16926855
parent 14440 a1613788130d
permissions -rw-r--r--
Fix usage of wrong (and uninitialized) variable

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