mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
fixes build issues
This commit is contained in:
@@ -45,9 +45,10 @@ impl Drop for CliContextSeed {
|
|||||||
File::create(&tmp).unwrap(),
|
File::create(&tmp).unwrap(),
|
||||||
fd_lock_rs::LockType::Exclusive,
|
fd_lock_rs::LockType::Exclusive,
|
||||||
true,
|
true,
|
||||||
)?;
|
)
|
||||||
|
.unwrap();
|
||||||
let store = self.cookie_store.lock().unwrap();
|
let store = self.cookie_store.lock().unwrap();
|
||||||
store.save_json(&mut writer).unwrap();
|
store.save_json(&mut *writer).unwrap();
|
||||||
writer.sync_all().unwrap();
|
writer.sync_all().unwrap();
|
||||||
std::fs::rename(tmp, &self.cookie_path).unwrap();
|
std::fs::rename(tmp, &self.cookie_path).unwrap();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -193,6 +193,6 @@ pub async fn ui(
|
|||||||
let ptr = "/ui".parse::<JsonPointer>()? + &pointer;
|
let ptr = "/ui".parse::<JsonPointer>()? + &pointer;
|
||||||
Ok(WithRevision {
|
Ok(WithRevision {
|
||||||
response: (),
|
response: (),
|
||||||
revision: Some(ctx.db.put(&ptr, &value, None).await?),
|
revision: ctx.db.put(&ptr, &value, None).await?,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user