fix(deps): bound SQLx pool maintenance and reserve idle counters

This commit is contained in:
bsodfather committed 2026-10-04 23:57:40 +03:00
1 parent 7aa854de26
commit 284eb8180e
113 files changed
+21092 -2

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
mod statement_cache;
pub use statement_cache::StatementCache;
use std::fmt::{Debug, Formatter};
use std::ops::{Deref, DerefMut};
/// A wrapper for `Fn`s that provides a debug impl that just says "Function"
pub struct DebugFn<F: ?Sized>(pub F);
impl<F: ?Sized> Deref for DebugFn<F> {
type Target = F;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<F: ?Sized> DerefMut for DebugFn<F> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl<F: ?Sized> Debug for DebugFn<F> {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
f.debug_tuple("Function").finish()
}
}