1
0
mirror of https://github.com/jht5945/rust_util.git synced 2025-12-29 00:20:04 +08:00

refactor: fix clippy

This commit is contained in:
2020-09-19 20:12:40 +08:00
parent 20b452656e
commit e027f8f713
3 changed files with 6 additions and 8 deletions

View File

@@ -26,11 +26,7 @@ impl JoinFilesReader {
if !files.is_empty() {
file_lines = Some(Box::new(open_file_as_lines(&files[0])?));
}
Ok(Self {
files,
file_ptr,
file_lines,
})
Ok(Self { files, file_ptr, file_lines })
}
}