Skip to content

Commit 1b20289

Browse files
committed
chore: format code
1 parent d1e28fc commit 1b20289

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

frontend/appflowy_flutter/packages/appflowy_backend/lib/dispatch/dispatch.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ class Dispatch {
5454
FFIRequest request,
5555
) async {
5656
Future<FlowyResult<Uint8List, Uint8List>> _asyncRequest() async {
57-
final event = request.event;
5857
final bytesFuture = _sendToRust(request);
5958
final response = await _extractResponse(bytesFuture);
6059
final payload = _extractPayload(response);

frontend/rust-lib/flowy-folder-pub/src/sql/workspace_shared_user_sql.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub struct WorkspaceSharedUserTable {
1818
pub order: i32,
1919
}
2020

21+
#[allow(clippy::too_many_arguments)]
2122
impl WorkspaceSharedUserTable {
2223
pub fn new(
2324
workspace_id: String,

frontend/rust-lib/flowy-folder/src/manager.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,7 @@ impl FolderManager {
14201420
user.name.clone(),
14211421
user.avatar_url.clone().unwrap_or_default(),
14221422
user.role.clone() as i32,
1423-
user.access_level.clone() as i32,
1423+
user.access_level as i32,
14241424
order as i32,
14251425
)
14261426
})
@@ -1435,7 +1435,7 @@ impl FolderManager {
14351435

14361436
// Notify UI to refresh the shared page details
14371437
folder_notification_builder(
1438-
&cloud_page_id.to_string(),
1438+
cloud_page_id.to_string(),
14391439
FolderNotification::DidUpdateSharedUsers,
14401440
)
14411441
.payload(RepeatedSharedUserPB {
@@ -1493,7 +1493,7 @@ impl FolderManager {
14931493

14941494
// Notify UI to refresh the shared page details
14951495
folder_notification_builder(
1496-
&page_id.to_string(),
1496+
page_id.to_string(),
14971497
FolderNotification::DidUpdateSharedUsers,
14981498
)
14991499
.payload(RepeatedSharedUserPB {
@@ -1565,7 +1565,7 @@ impl FolderManager {
15651565
user.name.clone(),
15661566
user.avatar_url.clone().unwrap_or_default(),
15671567
user.role.clone() as i32,
1568-
user.access_level.clone() as i32,
1568+
user.access_level as i32,
15691569
order as i32,
15701570
)
15711571
})
@@ -1580,7 +1580,7 @@ impl FolderManager {
15801580

15811581
// Notify UI to refresh the shared page details
15821582
folder_notification_builder(
1583-
&cloud_page_id.to_string(),
1583+
cloud_page_id.to_string(),
15841584
FolderNotification::DidUpdateSharedUsers,
15851585
)
15861586
.payload(RepeatedSharedUserPB {

0 commit comments

Comments
 (0)