rust/physfs-rs/src/physfs/util.rs
author unc0rr
Sun, 06 Nov 2022 17:27:28 +0100
changeset 15888 0cd6996cd4c8
parent 14435 a1613788130d
permissions -rw-r--r--
Remove stray debugging

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