rust/physfs-rs/src/physfs/util.rs
author unC0Rr
Tue, 28 Jan 2025 10:37:46 +0100
changeset 16072 a4cbc6926439
parent 14435 a1613788130d
permissions -rw-r--r--
- Adopt newest version of rand crate - Rework fill_bytes() method to use full generated values

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