Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate netbench to Rust 2018 #154

Merged
merged 1 commit into from
Sep 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions benches/netbench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
name = "rust-tcp-io-perf"
version = "0.0.0"
authors = ["Lorenzo Martini <lmartini@student.ethz.ch>"]
edition = "2018"
readme = "README.md"

description = "A Rust program to measure bandwidth or latency over a Rust TCP connection"
Expand Down
2 changes: 1 addition & 1 deletion benches/netbench/src/connection.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extern crate core_affinity;

use config::Config;
use crate::config::Config;
use std::io;
use std::io::ErrorKind::WouldBlock;
use std::io::{Read, Write};
Expand Down
2 changes: 1 addition & 1 deletion benches/netbench/src/threading.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use config::Config;
use crate::config::Config;

pub fn setup(config: &Config) {
if config.p_id >= 0 {
Expand Down