mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-03 05:20:38 +00:00
Calm clippy
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user