rust/physfs-rs/src/physfs/util.rs
author sheepluva
Sat, 26 Jun 2021 00:13:28 +0200
changeset 15831 c3971b38bbfa
parent 14456 a1613788130d
permissions -rw-r--r--
hedgewars-engine (rust)/preview: recognise feature_size cmd and do something with it

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