enforce stricter lints, drop discarded results properly
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user