docs: fill annotation audit gaps in object and type paths
This commit is contained in:
@@ -160,6 +160,7 @@ impl SourceFile {
|
||||
impl Drop for SourceFile {
|
||||
/// 退出文件测试作用域时清理文件,忽略已不存在等删除错误,避免 Drop 再次失败。
|
||||
fn drop(&mut self) {
|
||||
// 只尽力删除测试文件,显式忽略删除结果,不在析构中制造第二个错误。
|
||||
let _ = std::fs::remove_file(&self.0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user