mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-27 18:56:30 +00:00
simplify format!
This commit is contained in:
@@ -45,11 +45,10 @@ impl<'a> Plugin for TableAccess<'a> {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if let Some(found) = found {
|
if let Some(found) = found {
|
||||||
debug!("Blocking access to table \"{}\"", found);
|
debug!("Blocking access to table \"{found}\"");
|
||||||
|
|
||||||
Ok(PluginOutput::Deny(format!(
|
Ok(PluginOutput::Deny(format!(
|
||||||
"permission for table \"{}\" denied",
|
"permission for table \"{found}\" denied",
|
||||||
found
|
|
||||||
)))
|
)))
|
||||||
} else {
|
} else {
|
||||||
Ok(PluginOutput::Allow)
|
Ok(PluginOutput::Allow)
|
||||||
|
|||||||
Reference in New Issue
Block a user