Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Wells <[email protected]>
  • Loading branch information
andrewmwells-amazon committed Jun 20, 2024
1 parent 9a9c57c commit 935cae5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cedar-drt/src/lean_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ use cedar_testing::cedar_test_impl::*;
pub use lean_sys::init::lean_initialize;
pub use lean_sys::lean_object;
pub use lean_sys::string::lean_mk_string;
use lean_sys::{lean_dec, lean_dec_ref, lean_io_result_is_ok, lean_io_result_show_error, lean_initialize_runtime_module_locked, lean_io_mark_end_initialization, lean_io_mk_world,
lean_string_cstr, lean_initialize_thread, lean_finalize_thread};
use lean_sys::{
lean_dec, lean_dec_ref, lean_finalize_thread, lean_initialize_runtime_module_locked,
lean_initialize_thread, lean_io_mark_end_initialization, lean_io_mk_world,
lean_io_result_is_ok, lean_io_result_show_error, lean_string_cstr,
};
use log::info;
use miette::miette;
use serde::Deserialize;
Expand Down Expand Up @@ -147,7 +150,7 @@ impl LeanDefinitionalEngine {
lean_io_mark_end_initialization();
};
});
unsafe{lean_initialize_thread()};
unsafe { lean_initialize_thread() };
Self {}
}

Expand Down Expand Up @@ -374,9 +377,7 @@ impl LeanDefinitionalEngine {

impl Drop for LeanDefinitionalEngine {
fn drop(&mut self) {
unsafe {
lean_finalize_thread()
}
unsafe { lean_finalize_thread() }
}
}

Expand Down

0 comments on commit 935cae5

Please sign in to comment.