rust/physfs-rs/src/physfs/util.rs
author unC0Rr
Thu, 22 Oct 2020 12:33:35 +0200
branch1.0.0
changeset 15887 6b10b0cdbeab
parent 14456 a1613788130d
permissions -rw-r--r--
Mark global variables in implementation section static

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