rust/physfs-rs/src/physfs/util.rs
author alfadur
Tue, 23 Jun 2020 02:04:00 +0300
changeset 15628 e63748a3aa52
parent 14435 a1613788130d
permissions -rw-r--r--
workaround for world edge selector on MacOS

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