Pacify clippy

This commit is contained in:
Greg Fitzgerald
2018-09-24 13:26:47 -06:00
parent ea37d29d3a
commit 95677a81c5
9 changed files with 21 additions and 20 deletions

View File

@ -386,7 +386,7 @@ impl Fullnode {
// Make a new RPU to serve requests out of the new bank we've created
// instead of the old one
if !self.rpu.is_none() {
if self.rpu.is_some() {
let old_rpu = self.rpu.take().unwrap();
old_rpu.close()?;
self.rpu = Some(Rpu::new(