rust/physfs-rs/src/physfs/util.rs
author alfadur
Mon, 18 May 2020 23:43:58 +0300
changeset 15574 ca5c7c1de985
parent 14435 a1613788130d
permissions -rw-r--r--
add haskell literal formatter

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