To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 1eae9d8d authored by Javad Ebrahimian Amiri's avatar Javad Ebrahimian Amiri
Browse files

fixed some rustfmt imposed bugs

parent 93e33ae5
...@@ -128,7 +128,7 @@ fn test_instruction_new_on_cur_thread() { ...@@ -128,7 +128,7 @@ fn test_instruction_new_on_cur_thread() {
unsafe { unsafe {
MuThread::current_thread_as_mu_thread(Address::zero(), vm.clone()); MuThread::current_thread_as_mu_thread(Address::zero(), vm.clone());
let func: libloading::Symbol<unsafe extern "C" fn() -> () -> ()> = let func: libloading::Symbol<unsafe extern "C" fn() -> ()> =
lib.get(b"alloc_new").unwrap(); lib.get(b"alloc_new").unwrap();
func(); func();
......
...@@ -18,9 +18,8 @@ fn test_mov_minus_one_to_int8() { ...@@ -18,9 +18,8 @@ fn test_mov_minus_one_to_int8() {
); );
unsafe { unsafe {
let mov_minus_one_to_int8: libloading::Symbol< let mov_minus_one_to_int8: libloading::Symbol<unsafe extern "C" fn() -> (i8)>
unsafe extern "C" fn() -> (i8) -> (i8) = lib.get(b"mov_minus_one_to_int8").unwrap();
> = lib.get(b"mov_minus_one_to_int8").unwrap();
let res = mov_minus_one_to_int8(); let res = mov_minus_one_to_int8();
println!("mov_minus_one_to_u8() = {}", res); println!("mov_minus_one_to_u8() = {}", res);
...@@ -72,7 +71,7 @@ fn test_branch_minus_one_to_int8() { ...@@ -72,7 +71,7 @@ fn test_branch_minus_one_to_int8() {
unsafe { unsafe {
let branch_minus_one_to_int8: libloading::Symbol< let branch_minus_one_to_int8: libloading::Symbol<
unsafe extern "C" fn() -> (i8) -> (i8) unsafe extern "C" fn() -> (i8)
> = lib.get(b"branch_minus_one_to_int8").unwrap(); > = lib.get(b"branch_minus_one_to_int8").unwrap();
let res = branch_minus_one_to_int8(); let res = branch_minus_one_to_int8();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment