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

Commit d48899fb authored by Javad Ebrahimian Amiri's avatar Javad Ebrahimian Amiri
Browse files

rustfmt bugs!

parent f76b95b6
......@@ -185,3 +185,4 @@ rustfmt:
stage: rustfmt
script:
- cargo-fmt -- --check --verbose -- src/lib.rs src/ast/src/lib.rs src/gc/src/lib.rs src/utils/src/lib.rs
allow_failure: true
......@@ -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();
......
......@@ -19,7 +19,7 @@ fn test_mov_minus_one_to_int8() {
unsafe {
let mov_minus_one_to_int8: libloading::Symbol<
unsafe extern "C" fn() -> (i8) -> (i8)
unsafe extern "C" fn() -> (i8)
> = lib.get(b"mov_minus_one_to_int8").unwrap();
let res = mov_minus_one_to_int8();
......@@ -72,7 +72,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