cargo fmt
This commit is contained in:
parent
a340b18b19
commit
236113e417
|
@ -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();
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue