equal
deleted
inserted
replaced
|
1 use std::io::{ Error, ErrorKind }; |
|
2 use super::PhysFSContext; |
|
3 |
|
4 pub fn physfs_error_as_io_error() -> Error { |
|
5 Error::new(ErrorKind::Other, |
|
6 &format!("PhysicsFS Error: `{}`", PhysFSContext::get_last_error())[..]) |
|
7 } |