rust/physfs-rs/src/physfs/util.rs
author nemo
Tue, 19 Nov 2019 08:35:32 -0500
changeset 15513 dfdd0db89760
parent 14440 a1613788130d
permissions -rw-r--r--
oups. forgot "convert" creates a white background by default

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