summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-10 14:35:42 +0200
committermo8it <mo8it@proton.me>2024-04-10 14:35:42 +0200
commitb3642b0219252e97213fd4348379f272a3002f39 (patch)
treef3003f4d2ea052bc799900077039e2d6d2e6c572
parent193e0a03b2cde094b2a668371b7ed94f81d33de7 (diff)
Remove todo
-rw-r--r--src/state_file.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/state_file.rs b/src/state_file.rs
index 693c78d..583e043 100644
--- a/src/state_file.rs
+++ b/src/state_file.rs
@@ -33,7 +33,6 @@ impl StateFile {
}
fn write(&self) -> Result<()> {
- // TODO: Capacity
let mut buf = Vec::with_capacity(1024);
serde_json::ser::to_writer(&mut buf, self).context("Failed to serialize the state")?;
fs::write(".rustlings-state.json", buf)