rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Thu, 18 Jul 2019 03:39:58 +0200
changeset 15252 515a4a317e52
parent 14435 a1613788130d
permissions -rw-r--r--
CTF: Fix clan not winning if enemy hog was time-travelling

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