WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

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 578839d1 authored by Javad Ebrahimian Amiri's avatar Javad Ebrahimian Amiri
Browse files

to solve the confusing errors of older rust versions

parent d48899fb
...@@ -4416,9 +4416,9 @@ pub fn emit_context_with_reloc( ...@@ -4416,9 +4416,9 @@ pub fn emit_context_with_reloc(
// #41 // #41
trace!("start serializing vm"); trace!("start serializing vm");
use rodal; use rodal;
use std::time::Instant; // use std::time::Instant;
let now = Instant::now(); // let now = Instant::now();
let mut dumper = rodal::AsmDumper::new(file); let mut dumper = rodal::AsmDumper::new(file);
// Dump an Arc to the vm // Dump an Arc to the vm
...@@ -4436,7 +4436,7 @@ pub fn emit_context_with_reloc( ...@@ -4436,7 +4436,7 @@ pub fn emit_context_with_reloc(
dumper.finish(); dumper.finish();
trace!("Dumping took {} micro-seconds", now.elapsed().as_micros()); // trace!("Dumping took {} micro-seconds", now.elapsed().as_micros());
emit_sym_table(vm); emit_sym_table(vm);
......
...@@ -256,7 +256,7 @@ pub extern "C" fn mu_trace_level_log() { ...@@ -256,7 +256,7 @@ pub extern "C" fn mu_trace_level_log() {
#[no_mangle] #[no_mangle]
pub static mut LAST_TIME: c_ulong = 0; pub static mut LAST_TIME: c_ulong = 0;
use std::time::{Duration, Instant}; //use std::time::{Duration, Instant};
// RTMU mu_main needs changes // RTMU mu_main needs changes
...@@ -273,7 +273,7 @@ pub extern "C" fn mu_main( ...@@ -273,7 +273,7 @@ pub extern "C" fn mu_main(
VM::start_logging_env(); VM::start_logging_env();
debug!("mu_main() started..."); debug!("mu_main() started...");
let now = Instant::now(); // let now = Instant::now();
// load and resume the VM // load and resume the VM
unsafe { unsafe {
...@@ -284,10 +284,10 @@ pub extern "C" fn mu_main( ...@@ -284,10 +284,10 @@ pub extern "C" fn mu_main(
}; };
let vm = VM::resume_vm(dumped_vm); let vm = VM::resume_vm(dumped_vm);
trace!( // trace!(
"VM deserialization took {} milli-seconds", // "VM deserialization took {} milli-seconds",
now.elapsed().as_micros() // now.elapsed().as_micros()
); // );
// find the primordial function as an entry // find the primordial function as an entry
let primordial = vm.primordial().read().unwrap(); let primordial = vm.primordial().read().unwrap();
......
...@@ -28,7 +28,7 @@ lazy_static! { ...@@ -28,7 +28,7 @@ lazy_static! {
let built_time = built::util::strptime(&BUILT_TIME_UTC); let built_time = built::util::strptime(&BUILT_TIME_UTC);
format!("Zebu {} ({}, {})", PKG_VERSION, git, built_time.ctime()) format!("Zebu {} ({}, {:#?})", PKG_VERSION, git, built_time)
}; };
pub static ref ZEBU_VERSION_C_STR: CString = pub static ref ZEBU_VERSION_C_STR: CString =
CString::new(ZEBU_VERSION_STR.clone()).unwrap(); CString::new(ZEBU_VERSION_STR.clone()).unwrap();
......
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