rust/physfs-rs/src/physfs/util.rs
author alfadur <mail@none>
Wed, 06 Feb 2019 21:33:22 +0300
changeset 14689 aae29ba56aec
parent 14435 a1613788130d
permissions -rw-r--r--
Server action refactoring part C 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())[..])
}