From 389b758df8990c53a132af9b3d7de5b6714be2ab Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 3 Nov 2026 06:53:42 +0100 Subject: fixup 700, 701, 702 --- src/api/store.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/api/store.rs') 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 ), 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), -- cgit v1.3.1