rust/physfs-rs/src/physfs/util.rs
author alfadur
Sun, 24 May 2020 06:10:25 +0300
changeset 15581 ab095fc0256c
parent 14435 a1613788130d
permissions -rw-r--r--
convert replay to haskell

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