aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/store.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/store.rs')
-rw-r--r--src/api/store.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/store.rs b/src/api/store.rs
index d419d37..f6cf6fd 100644
--- a/src/api/store.rs
+++ b/src/api/store.rs
@@ -20,10 +20,10 @@ use tracing::{debug, error, instrument, warn};
use super::auth::AuthenticatedUser;
use super::{ApiError, store_status};
-use crate::document::ChangeHash;
use crate::document::meta;
use crate::document::store::{self, StoreError, paths_related};
use crate::document::typed::{self, JsonForm, Kind, TimestampFormat, Val};
+use crate::document::{ChangeHash, ScalarValue};
use crate::state::{AppState, ReadSource};
use crate::transport::Hex;
@@ -608,7 +608,7 @@ fn body_value(headers: &HeaderMap, body: &Bytes) -> Result<WriteBody, ApiError>
),
typed::TEXT => (
String::from_utf8(body.to_vec())
- .map(|text| Val::Scalar(automerge::ScalarValue::Str(text.into())))
+ .map(|text| Val::Scalar(ScalarValue::Str(text.into())))
.map_err(|_| bad("not UTF-8".to_owned()))?,
store::Sticky::All,
),
@@ -669,7 +669,7 @@ pub(crate) async fn post_store_entry(
.map_err(|e| store_status(e, "Failed to increment a counter"))?;
return Ok(with_heads(
{
- let counter = automerge::ScalarValue::counter(value);
+ let counter = ScalarValue::counter(value);
let held = store::Held {
kind: Kind::Counter,
value: Some(counter),