rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Mon, 28 Oct 2019 20:40:07 +0100
changeset 15495 0039baa9895e
parent 14440 a1613788130d
permissions -rw-r--r--
Add RopeKnocking library (generalized ropeknock challenges)

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