Fix clippy "unnecessary Ok" lints

This commit is contained in:
teor 2021-01-22 13:57:09 +10:00 committed by Jane Lusby
parent 49e6150427
commit 00c3ad5d8e
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ impl FromStr for CheckpointList {
};
}
Ok(CheckpointList::from_list(checkpoint_list)?)
CheckpointList::from_list(checkpoint_list)
}
}

View File

@ -783,7 +783,7 @@ fn sync_until(
// This message is captured by the test runner, use
// `cargo test -- --nocapture` to see it.
eprintln!("Skipping network test because '$ZEBRA_SKIP_NETWORK_TESTS' is set.");
return Ok(testdir()?);
return testdir();
}
// Use a persistent state, so we can handle large syncs