rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Tue, 07 May 2019 18:45:14 +0200
changeset 14904 4d5df8d35a95
parent 14440 a1613788130d
permissions -rw-r--r--
Display a warning when the same key is used multiple times

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