From 6137dc27530edcb6e09aa4ddf27ec813c754faa9 Mon Sep 17 00:00:00 2001 From: James Gilles Date: Thu, 12 Dec 2024 17:34:48 -0500 Subject: [PATCH] Move comments --- crates/sats/src/de.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/crates/sats/src/de.rs b/crates/sats/src/de.rs index 00e0d6cf469..cc4d821f748 100644 --- a/crates/sats/src/de.rs +++ b/crates/sats/src/de.rs @@ -14,8 +14,7 @@ use core::marker::PhantomData; use smallvec::SmallVec; use std::borrow::Borrow; -/// A **data format** that can deserialize any data structure supported by -/// the SpacetimeDB Algebraic Type System. +/// A **data format** that can deserialize any data structure supported by SATS. /// /// The `Deserializer` trait in SATS performs the same function as [`serde::Deserializer`] in [`serde`]. /// See the documentation of [`serde::Deserializer`] for more information of the data model. @@ -28,9 +27,6 @@ use std::borrow::Borrow; /// /// The lifetime `'de` allows us to deserialize lifetime-generic types in a zero-copy fashion. /// -/// Do not manually implement this trait unless you know what you are doing. -/// Incorrect implementations are safe, but can result in data loss. -/// /// [`serde::Deserializer`]: ::serde::Deserializer /// [`serde`]: https://crates.io/crates/serde pub trait Deserializer<'de>: Sized { @@ -546,7 +542,7 @@ pub trait DeserializeSeed<'de> { use crate::de::impls::BorrowedSliceVisitor; pub use spacetimedb_bindings_macro::Deserialize; -/// A **datastructure** that can be deserialized from any data format supported by SATS. +/// A **data structure** that can be deserialized from any data format supported by the SpacetimeDB Algebraic Type System. /// /// In most cases, implementations of `Deserialize` may be `#[derive(Deserialize)]`d. /// @@ -555,6 +551,9 @@ pub use spacetimedb_bindings_macro::Deserialize; /// /// The lifetime `'de` allows us to deserialize lifetime-generic types in a zero-copy fashion. /// +/// Do not manually implement this trait unless you know what you are doing. +/// Incorrect implementations are safe, but can result in data loss. +/// /// [`serde::Deserialize`]: ::serde::Deserialize /// [`serde`]: https://crates.io/crates/serde pub trait Deserialize<'de>: Sized {