Magical semi-colon

This commit is contained in:
Peter Tripp 2024-11-22 17:26:01 -05:00
parent 6501c46bd6
commit 9699ceac2f
No known key found for this signature in database

View file

@ -498,7 +498,7 @@ impl Fs for RealFs {
async fn save(&self, path: &Path, text: &Rope, line_ending: LineEnding) -> Result<()> {
let buffer_size = text.summary().len.min(10 * 1024);
if let Some(path) = path.parent() {
self.create_dir(path).await?
self.create_dir(path).await?;
}
let file = smol::fs::File::create(path).await?;
let mut writer = smol::io::BufWriter::with_capacity(buffer_size, file);