diff options
author | Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | 2021-04-05 20:21:34 +0000 |
---|---|---|
committer | Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | 2021-04-05 20:21:34 +0000 |
commit | 60695fac0957a4032ee84057de676ab8e3ddbb5d (patch) | |
tree | cdb58654c44c6c15ad8dcb2cfadc8e7b39d09047 /src/errors.rs | |
parent | Honor --no-symlinks option when listing (diff) | |
download | miniserve-60695fac0957a4032ee84057de676ab8e3ddbb5d.tar.gz miniserve-60695fac0957a4032ee84057de676ab8e3ddbb5d.zip |
Avoid unneccessary syscalls for entry metadata
For non-symlink files and directories, there is no need to call
`std::fs::metadata()` as the metadata are already obtained via
`entry.metadata()`
Diffstat (limited to 'src/errors.rs')
0 files changed, 0 insertions, 0 deletions