Skip to content

Commit 534e662

Browse files
committed
fix the last few that rerast missed
1 parent da21020 commit 534e662

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/db/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn get_file_list_from_dir<P: AsRef<Path>>(path: P,
2626
-> Result<()> {
2727
let path = path.as_ref();
2828

29-
for file in try!(path.read_dir()) {
29+
for file in path.read_dir()? {
3030
let file = file?;
3131

3232
if file.file_type()?.is_file() {

src/docbuilder/crates.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub fn crates_from_path<F>(path: &PathBuf, func: &mut F) -> Result<()>
6666
return Err(err_msg("Not a directory"));
6767
}
6868

69-
for file in try!(path.read_dir()) {
69+
for file in path.read_dir()? {
7070
let file = file?;
7171
let path = file.path();
7272
// skip files under .git and config.json

src/utils/copy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn copy_files_and_handle_html(source: PathBuf,
5555
r"(\.lock|\.txt|\.woff|\.svg|\.css|main-.*\.css|main-.*\.js|normalize-.*\.js|rustdoc-.*\.css|storage-.*\.js|theme-.*\.js)$")
5656
.unwrap();
5757

58-
for file in try!(source.read_dir()) {
58+
for file in source.read_dir()? {
5959

6060
let file = file?;
6161
let mut destination_full_path = PathBuf::from(&destination);

0 commit comments

Comments
 (0)