rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Fri, 17 May 2019 02:08:44 +0200
changeset 15009 0ebecd424fc7
parent 14456 a1613788130d
permissions -rw-r--r--
Control (style): Fix scoring breaking after using extra time

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