Mercurial > touhou
comparison formats/src/bin/dump_dat.rs @ 767:ccb04468c5fa
formats: Use Read::read_exact() and Write::write_all()
Thanks clippy!
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 30 Aug 2022 17:07:21 +0200 |
parents | abcb586566e6 |
children |
comparison
equal
deleted
inserted
replaced
766:8a3b8e2ffa24 | 767:ccb04468c5fa |
---|---|
22 | 22 |
23 create_dir_all(output_filename)?; | 23 create_dir_all(output_filename)?; |
24 for filename in list { | 24 for filename in list { |
25 let data = pbg3.get_file(&filename, true)?; | 25 let data = pbg3.get_file(&filename, true)?; |
26 let mut output = File::create(output_filename.join(filename))?; | 26 let mut output = File::create(output_filename.join(filename))?; |
27 output.write(&data)?; | 27 output.write_all(&data)?; |
28 } | 28 } |
29 | 29 |
30 Ok(()) | 30 Ok(()) |
31 } | 31 } |