rust/physfs-rs/src/physfs/util.rs
author yuenfu
Tue, 17 Sep 2019 15:54:10 +0200
changeset 15417 45ac7c07543d
parent 14440 a1613788130d
permissions -rw-r--r--
Update Traditional Chinese frontend 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())[..])
}