rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Thu, 25 Apr 2019 21:25:16 +0200
changeset 14837 5443e5e0faa3
parent 14435 a1613788130d
permissions -rw-r--r--
Escape HTML chars in stats screen

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