From 6de22116ced1d9934fcd43221265af7442686766 Mon Sep 17 00:00:00 2001 From: Keagan McClelland Date: Thu, 23 Sep 2021 16:21:41 -0600 Subject: [PATCH] fixes build issues --- appmgr/src/context/cli.rs | 5 +++-- appmgr/src/db/mod.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/appmgr/src/context/cli.rs b/appmgr/src/context/cli.rs index a19542a0a..4519d27a5 100644 --- a/appmgr/src/context/cli.rs +++ b/appmgr/src/context/cli.rs @@ -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(); } diff --git a/appmgr/src/db/mod.rs b/appmgr/src/db/mod.rs index 94c720b19..ac6fca35e 100644 --- a/appmgr/src/db/mod.rs +++ b/appmgr/src/db/mod.rs @@ -193,6 +193,6 @@ pub async fn ui( let ptr = "/ui".parse::()? + &pointer; Ok(WithRevision { response: (), - revision: Some(ctx.db.put(&ptr, &value, None).await?), + revision: ctx.db.put(&ptr, &value, None).await?, }) }