From 04a013f7ee74bfc10cd05e370a89eb058f3498db Mon Sep 17 00:00:00 2001 From: Richard Shiue <71320345+richardshiue@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:34:23 +0800 Subject: [PATCH] chore: fix clippy (#7007) --- .../rust-lib/flowy-database2/src/services/filter/entities.rs | 2 +- .../flowy-database2/src/services/group/configuration.rs | 2 +- .../flowy-user/src/migrations/workspace_and_favorite_v1.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/rust-lib/flowy-database2/src/services/filter/entities.rs b/frontend/rust-lib/flowy-database2/src/services/filter/entities.rs index 81aacd3f65fc1..52e368596cccc 100644 --- a/frontend/rust-lib/flowy-database2/src/services/filter/entities.rs +++ b/frontend/rust-lib/flowy-database2/src/services/filter/entities.rs @@ -213,7 +213,7 @@ impl Filter { /// /// 1. a Data filter, then it should be included. /// 2. an AND filter, then all of its effective children should be - /// included. + /// included. /// 3. an OR filter, then only the first child should be included. pub fn get_min_effective_filters<'a>(&'a self, min_effective_filters: &mut Vec<&'a FilterInner>) { match &self.inner { diff --git a/frontend/rust-lib/flowy-database2/src/services/group/configuration.rs b/frontend/rust-lib/flowy-database2/src/services/group/configuration.rs index 97636920a7823..95c1048b60852 100644 --- a/frontend/rust-lib/flowy-database2/src/services/group/configuration.rs +++ b/frontend/rust-lib/flowy-database2/src/services/group/configuration.rs @@ -351,7 +351,7 @@ where /// # Arguments /// /// * `mut_configuration_fn`: mutate the [GroupSetting] and return whether the [GroupSetting] is - /// changed. If the [GroupSetting] is changed, the [GroupSetting] will be saved to the storage. + /// changed. If the [GroupSetting] is changed, the [GroupSetting] will be saved to the storage. /// fn mut_configuration( &mut self, diff --git a/frontend/rust-lib/flowy-user/src/migrations/workspace_and_favorite_v1.rs b/frontend/rust-lib/flowy-user/src/migrations/workspace_and_favorite_v1.rs index 958699754995d..ec55b5fe29276 100644 --- a/frontend/rust-lib/flowy-user/src/migrations/workspace_and_favorite_v1.rs +++ b/frontend/rust-lib/flowy-user/src/migrations/workspace_and_favorite_v1.rs @@ -15,7 +15,7 @@ use flowy_user_pub::session::Session; /// 1. Migrate the workspace: { favorite: [view_id] } to { favorite: { uid: [view_id] } } /// 2. Migrate { workspaces: [workspace object] } to { views: { workspace object } }. Make each folder -/// only have one workspace. +/// only have one workspace. pub struct FavoriteV1AndWorkspaceArrayMigration; impl UserDataMigration for FavoriteV1AndWorkspaceArrayMigration {