From e54373717b8c16bbd66a64fcda684f7b9524504b Mon Sep 17 00:00:00 2001 From: neo_1993 Date: Thu, 27 Aug 2026 18:05:02 +0200 Subject: [PATCH] fixed a typo --- examples/globals.rs | 2 +- src/registry.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/globals.rs b/examples/globals.rs index 139494f..cffd198 100644 --- a/examples/globals.rs +++ b/examples/globals.rs @@ -16,7 +16,7 @@ fn main() -> io::Result<()> { // left blank }); // register the callbacks in wayland - registry.registry_listener(); + registry.register_listener(); // take a look around let _ = display.roundtrip(); diff --git a/src/registry.rs b/src/registry.rs index c6f6afc..4e5394e 100644 --- a/src/registry.rs +++ b/src/registry.rs @@ -97,7 +97,7 @@ impl Registry { { self.callbacks.global_remove = Some(Box::new(global_remove)); } - pub fn registry_listener(&mut self) { + pub fn register_listener(&mut self) { unsafe { wl_proxy_add_listener( self.raw.as_ptr() as *mut wl_proxy,