Skip to content

Commit f78b0eb

Browse files
authored
Update src/readme.rs
1 parent d8b9f7b commit f78b0eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/readme.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::PBAR;
1010
/// Copy the crate's README into the `pkg` directory.
1111
pub fn copy_from_crate(crate_data: &CrateData, path: &Path, out_dir: &Path) -> Result<()> {
1212
assert!(
13-
fs::metadata(path).ok().is_some_and(|m| m.is_dir()),
13+
fs::metadata(path).ok().map_or(false, |m| m.is_dir()),
1414
"crate directory should exist"
1515
);
1616
assert!(

0 commit comments

Comments
 (0)