docs: fill annotation audit gaps in object and type paths

This commit is contained in:
2026-11-15 19:11:16 +08:00
parent 52e62d5839
commit 903b3bbf9d
12 changed files with 36 additions and 1 deletions
+1
View File
@@ -160,6 +160,7 @@ impl SourceFile {
impl Drop for SourceFile {
/// 退出文件测试作用域时清理文件,忽略已不存在等删除错误,避免 Drop 再次失败。
fn drop(&mut self) {
// 只尽力删除测试文件,显式忽略删除结果,不在析构中制造第二个错误。
let _ = std::fs::remove_file(&self.0);
}
}