fix clippy warning

This commit is contained in:
Jack May 2018-09-23 14:50:05 -07:00 committed by Greg Fitzgerald
parent 1a45587c08
commit b2be0e2e5e
1 changed files with 1 additions and 1 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(