rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Sun, 05 Jul 2020 01:58:48 +0200
changeset 15668 9455b9e56aee
parent 14435 a1613788130d
permissions -rw-r--r--
Chat scale: Move setting to Video tab

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