rust/physfs-rs/src/physfs/util.rs
author unc0rr
Mon, 06 May 2019 21:20:56 +0200
changeset 14894 9b292184d793
parent 14440 a1613788130d
permissions -rw-r--r--
Port code to pas2c dialect

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