pinakes-core: fix subtitle i32 overflow in postgres

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I3b43f97c96905953fd58f051667c59096a6a6964
This commit is contained in:
raf 2026-03-12 19:41:01 +03:00
commit 6d68a83003
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
4 changed files with 33 additions and 8 deletions

View file

@ -28,9 +28,10 @@ impl TempFileGuard {
impl Drop for TempFileGuard {
fn drop(&mut self) {
if self.0.exists()
&& let Err(e) = std::fs::remove_file(&self.0) {
warn!("failed to clean up temp file {}: {e}", self.0.display());
}
&& let Err(e) = std::fs::remove_file(&self.0)
{
warn!("failed to clean up temp file {}: {e}", self.0.display());
}
}
}