File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1520,8 +1520,8 @@ fn readme_for_project(package_root: &Path, project: &Box<TomlProject>) -> Option
1520
1520
None => default_readme_from_package_root ( package_root) ,
1521
1521
Some ( value) => match value. as_str ( ) {
1522
1522
"false" => None ,
1523
- _ => Some ( value. clone ( ) )
1524
- }
1523
+ _ => Some ( value. clone ( ) ) ,
1524
+ } ,
1525
1525
}
1526
1526
}
1527
1527
@@ -1540,11 +1540,15 @@ fn _default_readme_from_package_root(package_root: &Path) -> CargoResult<String>
1540
1540
let fname = entry. file_name ( ) ;
1541
1541
1542
1542
if entry. metadata ( ) ?. is_file ( ) && DEFAULT_README_FILES . contains ( & fname. to_str ( ) . unwrap ( ) ) {
1543
- return Ok ( fname. into_string ( ) . map_err ( |_| anyhow ! ( "Could not convert the README's file name into a String" ) ) ?) ;
1543
+ return Ok ( fname
1544
+ . into_string ( )
1545
+ . map_err ( |_| anyhow ! ( "Could not convert the README's file name into a String" ) ) ?) ;
1544
1546
}
1545
1547
}
1546
1548
1547
- Err ( anyhow ! ( "No files with the default README file names found in the package root." ) )
1549
+ Err ( anyhow ! (
1550
+ "No files with the default README file names found in the package root."
1551
+ ) )
1548
1552
}
1549
1553
1550
1554
/// Checks a list of build targets, and ensures the target names are unique within a vector.
You can’t perform that action at this time.
0 commit comments