我的代码如下extern crate bsdiff;use stdfsFile;use stdioRead Write;use stdpathPath;fn main let old_file_path &Path = Pathnewold_file; let new_file_path = Pathnewnew_file; let patch_file_path = Path
这个错误意味着你在代码中调用了一个名为 bsdiff::patch 的模块,但实际上它应该是一个函数。根据错误信息,你可以尝试将 bsdiff::patch 改为 bsdiff::patch::patch,或者在代码开头使用 use bsdiff::patch::patch 导入该函数。
原文地址: https://www.cveoy.top/t/topic/dqRg 著作权归作者所有。请勿转载和采集!