Skip to content

Instantly share code, notes, and snippets.

View cloudhead's full-sized avatar
🌴
On vacation

Alexis Sellier cloudhead

🌴
On vacation
View GitHub Profile
package main
type Error struct {
Err error
}
func (e *Error) Error() string {
return e.Err.Error()
}
### Keybase proof
I hereby claim:
* I am cloudhead on github.
* I am cloudhead (https://keybase.io/cloudhead) on keybase.
* I have a public key whose fingerprint is 9453 A236 6051 325A 9983 4A19 0F08 5776 FC21 7A78
To claim this, I am signing this object:
use std::io;
use std::net;
use std::os::unix::io::AsRawFd;
use std::os::unix::io::RawFd;
use std::time;
#[repr(C, packed)]
pub struct Descriptor {
fd: RawFd,
events: libc::c_short,