about summary refs log tree commit diff
path: root/ops/journaldriver/src/main.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-02-23T11·59+0200
committertazjin <mail@tazj.in>2021-02-24T14·07+0000
commitc9726d8a00b9bc59debee441c3d700be924a60b1 (patch)
tree7a8b1cc12fca70252f4355c3607ab18add70788b /ops/journaldriver/src/main.rs
parentbef01b141931f80afeb9716ba199eaaa9d0c1505 (diff)
chore(ops/journaldriver): Expand wildcard imports r/2226
... to appease Profpatsch.

Change-Id: Id8576645a6920312c2304ea7880524d9cda8e21b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2544
Tested-by: BuildkiteCI
Reviewed-by: Profpatsch <mail@profpatsch.de>
Diffstat (limited to 'ops/journaldriver/src/main.rs')
-rw-r--r--ops/journaldriver/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/ops/journaldriver/src/main.rs b/ops/journaldriver/src/main.rs
index a57bb3505ddc..9886af1c3696 100644
--- a/ops/journaldriver/src/main.rs
+++ b/ops/journaldriver/src/main.rs
@@ -45,7 +45,7 @@ extern crate systemd;
 extern crate ureq;
 
 use chrono::offset::LocalResult;
-use chrono::prelude::*;
+use chrono::prelude::{DateTime, TimeZone, Utc};
 use failure::ResultExt;
 use serde_json::{from_str, Value};
 use std::env;
@@ -55,7 +55,7 @@ use std::mem;
 use std::path::PathBuf;
 use std::process;
 use std::time::{Duration, Instant};
-use systemd::journal::*;
+use systemd::journal::{Journal, JournalFiles, JournalRecord, JournalSeek};
 
 #[cfg(test)]
 mod tests;
@@ -553,7 +553,7 @@ fn flush(token: &mut Token,
     if token.is_expired() {
         debug!("Refreshing Google metadata access token");
         let new_token = get_token()?;
-        mem::replace(token, new_token);
+        *token = new_token;
     }
 
     for chunk in entries.chunks(750) {