rust/physfs-rs/src/physfs/util.rs
author unC0Rr
Tue, 27 Aug 2019 14:37:39 +0200
changeset 15366 381c828865e7
parent 14435 a1613788130d
permissions -rw-r--r--
Fix a couple more uses of uninitialized variables

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