fixes build issues

This commit is contained in:
Keagan McClelland
2021-09-23 16:21:41 -06:00
committed by Aiden McClelland
parent eaa04f1b8c
commit 6de22116ce
2 changed files with 4 additions and 3 deletions

View File

@@ -45,9 +45,10 @@ impl Drop for CliContextSeed {
File::create(&tmp).unwrap(),
fd_lock_rs::LockType::Exclusive,
true,
)?;
)
.unwrap();
let store = self.cookie_store.lock().unwrap();
store.save_json(&mut writer).unwrap();
store.save_json(&mut *writer).unwrap();
writer.sync_all().unwrap();
std::fs::rename(tmp, &self.cookie_path).unwrap();
}

View File

@@ -193,6 +193,6 @@ pub async fn ui(
let ptr = "/ui".parse::<JsonPointer>()? + &pointer;
Ok(WithRevision {
response: (),
revision: Some(ctx.db.put(&ptr, &value, None).await?),
revision: ctx.db.put(&ptr, &value, None).await?,
})
}