rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Thu, 11 Jul 2019 04:42:50 +0200
changeset 15227 263b9850c16d
parent 14435 a1613788130d
permissions -rw-r--r--
Tweak position of big splashes right or left

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