rust/physfs-rs/src/physfs/util.rs
author alfadur
Thu, 29 Aug 2019 00:20:41 +0300
changeset 15404 701ad89a9f2a
parent 14456 a1613788130d
permissions -rw-r--r--
avoid time multiplication when not skipping ticks

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