diff --git a/stress/Cargo.toml b/stress/Cargo.toml index ca2c7abf..a4d8cf71 100644 --- a/stress/Cargo.toml +++ b/stress/Cargo.toml @@ -13,14 +13,13 @@ doc = false ctrlc = "3.2.5" lazy_static = "1.4.0" num_cpus = "1.15.0" -rand = { version = "0.8.4", features = ["small_rng"] } num-format = "0.4.4" sysinfo = { version = "0.32", optional = true } -libc = "=0.2.164" # https://github.com/GuillaumeGomez/sysinfo/issues/1392 -async-trait = "0.1.51" -futures-executor = "0.3" eventheader_dynamic = "0.4.0" eventheader = "0.4.0" [features] -stats = ["sysinfo"] \ No newline at end of file +stats = ["sysinfo"] + +[profile.release] +debug = true diff --git a/stress/src/throughput.rs b/stress/src/throughput.rs index 8116f904..131762fa 100644 --- a/stress/src/throughput.rs +++ b/stress/src/throughput.rs @@ -140,8 +140,8 @@ struct UnsafeSlice<'a> { slice: &'a [UnsafeCell], } -unsafe impl<'a> Send for UnsafeSlice<'a> {} -unsafe impl<'a> Sync for UnsafeSlice<'a> {} +unsafe impl Send for UnsafeSlice<'_> {} +unsafe impl Sync for UnsafeSlice<'_> {} impl<'a> UnsafeSlice<'a> { fn new(slice: &'a mut [WorkerStats]) -> Self { @@ -155,7 +155,7 @@ impl<'a> UnsafeSlice<'a> { #[inline(always)] unsafe fn increment(&self, i: usize) { let value = self.slice[i].get(); - (*value).count = (*value).count + 1; + (*value).count += 1; } #[inline(always)]