rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Tue, 22 Jan 2019 21:34:13 +0100
changeset 14666 95b1b9ea505a
parent 14435 a1613788130d
permissions -rw-r--r--
Shorten text of buttons to load/edit drawn map and make them look nicer

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