##// END OF EJS Templates
rust-clippy: use `write_all` since we're not expecting a partial write...
Raphaël Gomès -
r50815:0d301f41 default
parent child Browse files
Show More
@@ -40,7 +40,7 b' fn create(index: &Index, path: &Path) ->'
40 nm.insert(index, index.node(rev).unwrap(), rev).unwrap();
40 nm.insert(index, index.node(rev).unwrap(), rev).unwrap();
41 }
41 }
42 eprintln!("Nodemap constructed in RAM in {:?}", start.elapsed());
42 eprintln!("Nodemap constructed in RAM in {:?}", start.elapsed());
43 file.write(&nm.into_readonly_and_added_bytes().1)?;
43 file.write_all(&nm.into_readonly_and_added_bytes().1)?;
44 eprintln!("Nodemap written to disk");
44 eprintln!("Nodemap written to disk");
45 Ok(())
45 Ok(())
46 }
46 }
General Comments 0
You need to be logged in to leave comments. Login now