rust/physfs-rs/src/physfs/util.rs
author unc0rr
Wed, 09 Oct 2019 07:43:43 +0200
changeset 15447 999f82643048
parent 14435 a1613788130d
permissions -rw-r--r--
Use correct way of including SDL2 header

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