rust/physfs-rs/src/physfs/util.rs
author alfadur
Wed, 21 Oct 2020 18:55:26 +0300
changeset 15751 a4558e2be08c
parent 14435 a1613788130d
permissions -rw-r--r--
add more const qualifiers to maintain a semblance of activity

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