rust/physfs-rs/src/physfs/util.rs
author unc0rr
Fri, 26 Apr 2019 23:21:27 +0200
changeset 14862 111c4d750c6d
parent 14456 a1613788130d
permissions -rw-r--r--
Limit room name change rate

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