Skip to content

Commit 801aec2

Browse files
author
Anton Smolin
authored
Merge pull request #1 from petrochenkov/master
Fix build on nightly
2 parents ba2290d + 33139b5 commit 801aec2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl Queue {
125125
let client = Client::open(self.url.as_str())?;
126126
let conn = client.get_connection()?;
127127

128-
conn.del(format!("{}:uuids", self.name))?;
128+
let _: () = conn.del(format!("{}:uuids", self.name))?;
129129

130130
Ok(())
131131
}
@@ -144,10 +144,10 @@ impl Queue {
144144

145145
let job = Job::new(args);
146146

147-
conn.set_ex(format!("{}:{}", self.name, job.uuid),
148-
serde_json::to_string(&job)?,
149-
expire)?;
150-
conn.rpush(format!("{}:uuids", self.name), &job.uuid)?;
147+
let _: () = conn.set_ex(format!("{}:{}", self.name, job.uuid),
148+
serde_json::to_string(&job)?,
149+
expire)?;
150+
let _: () = conn.rpush(format!("{}:uuids", self.name), &job.uuid)?;
151151

152152
Ok(job.uuid)
153153
}
@@ -230,7 +230,7 @@ impl Queue {
230230
let mut job: Job = serde_json::from_str(&json)?;
231231

232232
job.status = Status::RUNNING;
233-
conn.set_ex(&key, serde_json::to_string(&job)?, timeout + expire)?;
233+
let _: () = conn.set_ex(&key, serde_json::to_string(&job)?, timeout + expire)?;
234234

235235
let (tx, rx) = channel();
236236
let cafun = afun.clone();
@@ -256,7 +256,7 @@ impl Queue {
256256
if job.status == Status::RUNNING {
257257
job.status = Status::LOST;
258258
}
259-
conn.set_ex(&key, serde_json::to_string(&job)?, expire)?;
259+
let _: () = conn.set_ex(&key, serde_json::to_string(&job)?, expire)?;
260260

261261
if fall && job.status == Status::LOST {
262262
panic!("LOST");

0 commit comments

Comments
 (0)