rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Sat, 29 Jun 2019 22:52:14 +0200
changeset 15204 f55c1c895797
parent 14435 a1613788130d
permissions -rw-r--r--
Bee: Call HomingWrap in pre-homing phase, too

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