rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Fri, 19 Apr 2019 04:48:30 +0200
changeset 14810 583d8b96fb30
parent 14435 a1613788130d
permissions -rw-r--r--
Select appropriate schemes when taking room control (bug #461)

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