Skip to content

Commit 8910efb

Browse files
committed
clippy
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
1 parent 808b9d1 commit 8910efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lading/src/generator/unix_stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl UnixStream {
131131
NonZeroU32::new(config.bytes_per_second.as_u128() as u32).ok_or(Error::Zero)?;
132132
// Report total load: per-connection rate * number of connections
133133
let total_bytes_per_second =
134-
bytes_per_second.get() as u64 * config.parallel_connections as u64;
134+
u64::from(bytes_per_second.get()) * u64::from(config.parallel_connections);
135135
gauge!("bytes_per_second", &labels).set(total_bytes_per_second as f64);
136136

137137
let (startup, _startup_rx) = tokio::sync::broadcast::channel(1);

0 commit comments

Comments
 (0)