Calm clippy

This commit is contained in:
Alexey Kondratov
2022-09-29 20:51:52 +03:00
parent 4b5cf917e5
commit 00b41a5520
2 changed files with 4 additions and 9 deletions

View File

@@ -393,11 +393,8 @@ LIMIT 100",
.unwrap()
.iter()
{
match message {
postgres::SimpleQueryMessage::Row(row) => {
result_rows.push(row.get(0).unwrap().to_string());
}
_ => {}
if let postgres::SimpleQueryMessage::Row(row) = message {
result_rows.push(row.get(0).unwrap().to_string());
}
}

View File

@@ -72,10 +72,8 @@ impl GenericOption {
};
let mut res_val = val.to_owned();
if self.name == "shared_preload_libraries" {
if !res_val.contains("pg_stat_statements") {
res_val = format!("{},pg_stat_statements", res_val)
}
if self.name == "shared_preload_libraries" && !res_val.contains("pg_stat_statements") {
res_val = format!("{},pg_stat_statements", res_val)
}
match self.vartype.as_ref() {