Commit e380f6b3 authored by 4lDO2's avatar 4lDO2 🖖

Allow syscall::Result to accept other error types.

parent 6cd82c63
...@@ -5,7 +5,7 @@ pub struct Error { ...@@ -5,7 +5,7 @@ pub struct Error {
pub errno: i32, pub errno: i32,
} }
pub type Result<T> = result::Result<T, Error>; pub type Result<T, E = Error> = result::Result<T, E>;
impl Error { impl Error {
pub fn new(errno: i32) -> Error { pub fn new(errno: i32) -> Error {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment