Allow syscall::Result to accept other error types.

This commit is contained in:
4lDO2
2020-02-10 15:32:30 +01:00
parent 6cd82c63cd
commit e380f6b3d4

View File

@@ -5,7 +5,7 @@ pub struct Error {
pub errno: i32,
}
pub type Result<T> = result::Result<T, Error>;
pub type Result<T, E = Error> = result::Result<T, E>;
impl Error {
pub fn new(errno: i32) -> Error {