We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8b9f7b commit f78b0ebCopy full SHA for f78b0eb
src/readme.rs
@@ -10,7 +10,7 @@ use crate::PBAR;
10
/// Copy the crate's README into the `pkg` directory.
11
pub fn copy_from_crate(crate_data: &CrateData, path: &Path, out_dir: &Path) -> Result<()> {
12
assert!(
13
- fs::metadata(path).ok().is_some_and(|m| m.is_dir()),
+ fs::metadata(path).ok().map_or(false, |m| m.is_dir()),
14
"crate directory should exist"
15
);
16
0 commit comments