rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Wed, 28 Aug 2019 18:35:36 +0200
changeset 15398 cd8a918bd0df
parent 14456 a1613788130d
permissions -rw-r--r--
For Hungarian update: Update changelog, credits and German translation

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