Fix clippy errors on nightly (2021-09-29) (#691)

Most of the changes are for the new if-then-panic lint added in
https://github.com/rust-lang/rust-clippy/pull/7669.
This commit is contained in:
Max Sharnoff
2021-10-01 15:45:42 -07:00
committed by GitHub
parent 7095a5d551
commit 84f7dcd052
6 changed files with 26 additions and 32 deletions

View File

@@ -452,9 +452,7 @@ impl PostgresNode {
.output()
.expect("failed to execute whoami");
if !output.status.success() {
panic!("whoami failed");
}
assert!(output.status.success(), "whoami failed");
String::from_utf8(output.stdout).unwrap().trim().to_string()
}