Upgrade to Rust 1.31.0 (#2052)

* Upgrade to Rust 1.31.0
* Upgrade nightly
* Fix all clippy warnings
* Revert relaxed version check and update
This commit is contained in:
Greg Fitzgerald
2018-12-07 20:01:28 -07:00
committed by GitHub
parent 2bad6584f6
commit 0a83b17cdd
70 changed files with 487 additions and 298 deletions

View File

@@ -236,13 +236,15 @@ pub fn set_panic_hook(program: &'static str) {
// TODO: use ono.message() when it becomes stable
ono.to_string(),
),
).add_field(
)
.add_field(
"location",
influxdb::Value::String(match ono.location() {
Some(location) => location.to_string(),
None => "?".to_string(),
}),
).add_field("host_id", influxdb::Value::Integer(*HOST_ID))
)
.add_field("host_id", influxdb::Value::Integer(*HOST_ID))
.to_owned(),
);
// Flush metrics immediately in case the process exits immediately
@@ -359,10 +361,12 @@ mod test {
.add_field(
"random_bool",
influxdb::Value::Boolean(random::<u8>() < 128),
).add_field(
)
.add_field(
"random_int",
influxdb::Value::Integer(random::<u8>() as i64),
).to_owned();
)
.to_owned();
agent.submit(point);
}