Skip to content

Commit

Permalink
lib: Fix typo, from Navigation to Navigator
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric authored and joaoantoniocardoso committed Jul 29, 2024
1 parent 95d73d4 commit e9860e9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Option<NavigationManager>> = Mutex::new(None);
static ref NAVIGATOR: Mutex<Option<NavigatorManager>> = Mutex::new(None);
}

impl NavigationManager {
impl NavigatorManager {
fn get_instance() -> &'static Mutex<Option<Self>> {
if NAVIGATOR.lock().unwrap().is_none() {
*NAVIGATOR.lock().unwrap() = Some(NavigationManager {
*NAVIGATOR.lock().unwrap() = Some(NavigatorManager {
navigator: navigator_rs::Navigator::new(),
});
}
Expand All @@ -24,7 +24,7 @@ impl NavigationManager {

macro_rules! with_navigator {
() => {
NavigationManager::get_instance()
NavigatorManager::get_instance()
.lock()
.unwrap()
.as_mut()
Expand Down

0 comments on commit e9860e9

Please sign in to comment.