rust/physfs-rs/src/physfs/util.rs
author alfadur
Mon, 08 Apr 2019 22:16:44 +0300
changeset 14775 09d46ab83361
parent 14435 a1613788130d
permissions -rw-r--r--
port server parser to nom 5

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