rust/physfs-rs/src/physfs/util.rs
author spudpiggy <facetakers@gmail.com>
Fri, 05 Apr 2024 07:37:44 +0100
changeset 16005 1fd65aad285d
parent 14435 a1613788130d
permissions -rw-r--r--
Fixed grammar, and reworded a few sentences to sound better.

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