simplify format!

This commit is contained in:
Kevin Zimmerman
2023-07-25 19:24:52 -05:00
parent 64eb417125
commit 1c26aa3547

View File

@@ -45,11 +45,10 @@ impl<'a> Plugin for TableAccess<'a> {
});
if let Some(found) = found {
debug!("Blocking access to table \"{}\"", found);
debug!("Blocking access to table \"{found}\"");
Ok(PluginOutput::Deny(format!(
"permission for table \"{}\" denied",
found
"permission for table \"{found}\" denied",
)))
} else {
Ok(PluginOutput::Allow)