cargo fmt

This commit is contained in:
Michael Vines 2018-10-25 16:51:51 -07:00 committed by Grimes
parent a340b18b19
commit 236113e417
2 changed files with 5 additions and 10 deletions

View File

@ -353,7 +353,7 @@ mod tests {
// glad they all fit
assert_eq!(packets.len(), 1);
verified_sender // tx, no_ver, anf
verified_sender // tx, no_ver, anf
.send(vec![(packets[0].clone(), vec![1u8, 0u8, 1u8])])
.unwrap();

View File

@ -231,21 +231,16 @@ 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(
).add_field(
"host",
influxdb::Value::String(
hostname().unwrap_or_else(|_| "?".to_string())
),
)
.to_owned(),
influxdb::Value::String(hostname().unwrap_or_else(|_| "?".to_string())),
).to_owned(),
);
// Flush metrics immediately in case the process exits immediately
// upon return