Mercurial > touhou
diff 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 |
line wrap: on
line diff
--- a/formats/src/bin/dump_dat.rs +++ b/formats/src/bin/dump_dat.rs @@ -24,7 +24,7 @@ fn main() -> io::Result<()> { for filename in list { let data = pbg3.get_file(&filename, true)?; let mut output = File::create(output_filename.join(filename))?; - output.write(&data)?; + output.write_all(&data)?; } Ok(())