cleaner representation of index

This commit is contained in:
aaron-jack-manning
2022-08-25 10:44:22 +10:00
parent 0083c51418
commit bc602c4d34
7 changed files with 128 additions and 87 deletions

View File

@@ -119,7 +119,7 @@ impl Task {
file.seek(io::SeekFrom::Start(0))?;
file.write_all(file_contents.as_bytes())?;
state.index_insert(data.name.clone(), id);
state.data.index.insert(data.name.clone(), id);
Ok(Task {
path,