From e9860e9d78ee5611daadd16b57f454df6590d7e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Mon, 29 Jul 2024 11:26:23 -0300 Subject: [PATCH] lib: Fix typo, from Navigation to Navigator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 0b5d63591..a0be81519 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,18 +3,18 @@ use cpy_binder::{cpy_enum, cpy_fn, cpy_fn_c, cpy_fn_py, cpy_module, cpy_struct}; use lazy_static::lazy_static; use std::sync::Mutex; -struct NavigationManager { +struct NavigatorManager { navigator: navigator_rs::Navigator, } lazy_static! { - static ref NAVIGATOR: Mutex> = Mutex::new(None); + static ref NAVIGATOR: Mutex> = Mutex::new(None); } -impl NavigationManager { +impl NavigatorManager { fn get_instance() -> &'static Mutex> { if NAVIGATOR.lock().unwrap().is_none() { - *NAVIGATOR.lock().unwrap() = Some(NavigationManager { + *NAVIGATOR.lock().unwrap() = Some(NavigatorManager { navigator: navigator_rs::Navigator::new(), }); } @@ -24,7 +24,7 @@ impl NavigationManager { macro_rules! with_navigator { () => { - NavigationManager::get_instance() + NavigatorManager::get_instance() .lock() .unwrap() .as_mut()