rust/physfs-rs/src/physfs/util.rs
author alfadur
Thu, 07 Feb 2019 18:04:53 +0300
changeset 14695 216d39de1a44
parent 14435 a1613788130d
permissions -rw-r--r--
fix official server build & bump dependencies

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