rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Mon, 16 Sep 2019 17:53:19 +0200
changeset 15411 2cde69c1c680
parent 14435 a1613788130d
permissions -rw-r--r--
Racer: Really fix delay confusion when attempting to force-disable gfKing/gfPlaceHog For real this time. The previous attempt to fix this was shite.

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