enforce stricter lints, drop discarded results properly

This commit is contained in:
2026-09-21 00:40:51 +03:00
parent 95d168d5d8
commit 1332600148
12 changed files with 204 additions and 171 deletions
+2 -2
View File
@@ -116,9 +116,9 @@ pub fn should_check(app_dir: &Path, ttl: std::time::Duration) -> bool {
pub fn stamp_check(app_dir: &Path) {
let path = last_check_path(app_dir);
if let Some(parent) = path.parent() {
let _ = std::fs::create_dir_all(parent);
drop(std::fs::create_dir_all(parent));
}
let _ = std::fs::write(&path, b"");
drop(std::fs::write(&path, b""));
}
pub fn has_pending_update(app_dir: &Path) -> bool {