To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

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() {
unsafe {
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();
func();
......
......@@ -18,9 +18,8 @@ fn test_mov_minus_one_to_int8() {
);
unsafe {
let mov_minus_one_to_int8: libloading::Symbol<
unsafe extern "C" fn() -> (i8) -> (i8)
> = lib.get(b"mov_minus_one_to_int8").unwrap();
let mov_minus_one_to_int8: libloading::Symbol<unsafe extern "C" fn() -> (i8)>
= lib.get(b"mov_minus_one_to_int8").unwrap();
let res = mov_minus_one_to_int8();
println!("mov_minus_one_to_u8() = {}", res);
......@@ -72,7 +71,7 @@ fn test_branch_minus_one_to_int8() {
unsafe {
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();
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