rust/physfs-rs/src/physfs/util.rs
author alfadur <mail@none>
Mon, 04 Feb 2019 20:25:35 +0300
changeset 14678 08a8605bafaf
parent 14440 a1613788130d
permissions -rw-r--r--
Server action refactoring part 4 of N

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