mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
2b272f7bbc
Summary: When reading entries, we were using ok_or to read a slice and catch errors, but this causes an unnecessary allocation for the error even if we don't have an error. Let's use ok_or_else to avoid that. Reviewed By: quark-zju Differential Revision: D8897109 fbshipit-source-id: d308f64d54a58077d9ec2eb34dd1bef431ac1819 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |