• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1--- a/src/connection.rs	2020-12-21 14:55:17.022985801 +0100
2+++ b/src/connection.rs	2020-12-21 14:55:35.150841529 +0100
3@@ -84,9 +84,9 @@
4         hello_buf[0..BENCHMARK_MAGIC_NUMBER.len()]
5             .copy_from_slice(BENCHMARK_MAGIC_NUMBER.as_bytes());
6         let mut i = BENCHMARK_MAGIC_NUMBER.len();
7-        hello_buf[i] = env!("CARGO_PKG_VERSION_MAJOR").parse().unwrap();
8-        hello_buf[i + 1] = env!("CARGO_PKG_VERSION_MINOR").parse().unwrap();
9-        hello_buf[i + 2] = env!("CARGO_PKG_VERSION_PATCH").parse().unwrap();
10+        hello_buf[i] = 0;
11+        hello_buf[i + 1] = 0;
12+        hello_buf[i + 2] = 0;
13         i += 3;
14         hello_buf[i..i + 2].clone_from_slice(&PROTOCOL_VERSION.to_be_bytes());
15         i += 2;
16