Fix a needless borrow in OSDK

This commit is contained in:
Zhang Junyang
2024-06-19 08:35:07 +00:00
committed by Tate, Hongliang Tian
parent eaf51ccb24
commit a089fbd4fc

View File

@ -276,7 +276,7 @@ fn get_last_modified_time(path: impl AsRef<Path>) -> SystemTime {
let metadata = entry.metadata().unwrap();
if metadata.is_dir() {
last_modified = std::cmp::max(last_modified, get_last_modified_time(&entry.path()));
last_modified = std::cmp::max(last_modified, get_last_modified_time(entry.path()));
} else {
last_modified = std::cmp::max(last_modified, metadata.modified().unwrap());
}