From f6cb132d4e026db2b5fcb467bca50eab1c50f04c Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Sat, 21 Nov 2026 00:45:48 -0700 Subject: perform the ioctl() and clean up the returned memory, too Force-Push: yes Change-Id: I01ff1c94fd97a185656a05ce432471fa67cb08e5 --- src/error.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index d6bde2f..b3bb460 100644 --- a/src/error.rs +++ b/src/error.rs @@ -42,6 +42,13 @@ impl From> for Error { } } +impl From for Error { + fn from(error: rustix::io::Errno) -> Error { + Error(format!("Unix system-call error: {}", error)) + } +} + + impl From for Error { fn from(error: xcb::Error) -> Error { match error { -- cgit 1.4.1