Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: fix unit test
appflowye85606ac2117
diff --git a/shared-lib/flowy-folder-data-model/src/revision/trash_rev.rs b/shared-lib/flowy-folder-data-model/src/revision/trash_rev.rsindex 7a8c15511f..c72fc61dad 100644--- a/shared-lib/flowy-folder-data-model/src/revision/trash_rev.rs+++ b/shared-lib/flowy-folder-data-model/src/revision/trash_rev.rs@@ -33,7 +33,35 @@ impl<'de> serde::Deserialize<'de> for TrashTypeRevision {type Value = TrashTypeRevision;fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {- formatter.write_str("struct Insert")+ formatter.write_str("u8")+ }++ fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>+ where+ E: serde::de::Error,+ {+ self.visit_u8(v as u8)+ }++ fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>+ where+ E: serde::de::Error,+ {+ self.visit_u8(v as u8)+ }++ fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>+ where+ E: serde::de::Error,+ {+ self.visit_u8(v as u8)+ }++ fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>+ where+ E: serde::de::Error,+ {+ self.visit_u8(v as u8)}fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>@@ -50,6 +78,27 @@ impl<'de> serde::Deserialize<'de> for TrashTypeRevision {Ok(ty)}+ fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>+ where+ E: serde::de::Error,+ {+ self.visit_u8(v as u8)+ }++ fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>+ where+ E: serde::de::Error,+ {+ self.visit_u8(v as u8)+ }++ fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>+ where+ E: serde::de::Error,+ {+ self.visit_u8(v as u8)+ }+fn visit_str<E>(self, s: &str) -> Result<Self::Value, E>whereE: serde::de::Error,diff --git a/shared-lib/flowy-sync/src/client_folder/folder_pad.rs b/shared-lib/flowy-sync/src/client_folder/folder_pad.rsindex 5743bfdb84..f821c03e6f 100644--- a/shared-lib/flowy-sync/src/client_folder/folder_pad.rs+++ b/shared-lib/flowy-sync/src/client_folder/folder_pad.rs@@ -8,7 +8,6 @@ use crate::{},errors::{CollaborateError, CollaborateResult},};-use flowy_folder_data_model::revision::{AppRevision, TrashRevision, ViewRevision, WorkspaceRevision};use lib_infra::util::move_vec_element;use lib_ot::core::*;@@ -724,7 +723,7 @@ mod tests {"name": "🚽 my first trash","modified_time": 0,"create_time": 0,- "ty": "Unknown"+ "ty": 0}]}