Browse Source

beffudling fixes from cargo fix --edition

master
Jonathan Strong 6 years ago
parent
commit
d1b895468c
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/influx.rs

+ 3
- 3
src/influx.rs View File

@@ -408,8 +408,8 @@ impl InfluxWriter {
let mut buf = spares.pop_front().unwrap(); let mut buf = spares.pop_front().unwrap();
let mut count = 0; let mut count = 0;
let mut extras = 0; // any new Strings we intro to the system let mut extras = 0; // any new Strings we intro to the system
let mut last = Instant::now();
let mut last_clear = Instant::now();
let last = Instant::now();
let last_clear = Instant::now();
let mut loop_time = Instant::now(); let mut loop_time = Instant::now();


let n_out = |s: &VecDeque<String>, b: &VecDeque<String>, extras: usize| -> usize { let n_out = |s: &VecDeque<String>, b: &VecDeque<String>, extras: usize| -> usize {
@@ -534,7 +534,7 @@ impl InfluxWriter {


count = match next(count, &meas, &mut buf, loop_time, last) { count = match next(count, &meas, &mut buf, loop_time, last) {
Ok(n) => n, Ok(n) => n,
Err(n) => {
Err(_n) => {
let mut count = 0; let mut count = 0;
let mut next: String = match spares.pop_front() { let mut next: String = match spares.pop_front() {
Some(x) => x, Some(x) => x,


Loading…
Cancel
Save