rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Fri, 11 Oct 2019 20:18:07 +0200
changeset 15495 846b5f879408
parent 14456 a1613788130d
permissions -rw-r--r--
Remove unicode chars in *.pas files

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