mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: support Rust 1.75 (#4246)
* chore: fix wanrings * chore: update rust version
This commit is contained in:
@ -19,7 +19,7 @@ async fn grid_cell_update() {
|
||||
let rows = &test.row_details;
|
||||
|
||||
let mut scripts = vec![];
|
||||
for (_, row_detail) in rows.iter().enumerate() {
|
||||
for row_detail in rows.iter() {
|
||||
for field in &fields {
|
||||
let field_type = FieldType::from(field.field_type);
|
||||
if field_type == FieldType::LastEditedTime || field_type == FieldType::CreatedTime {
|
||||
|
@ -195,7 +195,7 @@ async fn grid_switch_from_multi_select_to_text_test() {
|
||||
from_field_type: FieldType::MultiSelect,
|
||||
expected_content: format!(
|
||||
"{},{}",
|
||||
multi_select_type_option.get(0).unwrap().name,
|
||||
multi_select_type_option.first().unwrap().name,
|
||||
multi_select_type_option.get(1).unwrap().name
|
||||
),
|
||||
}];
|
||||
|
@ -196,7 +196,7 @@ async fn change_date_on_moving_row_to_another_group() {
|
||||
|
||||
let group = test.group_at_index(2).await;
|
||||
let rows = group.clone().rows;
|
||||
let row_id = &rows.get(0).unwrap().id;
|
||||
let row_id = &rows.first().unwrap().id;
|
||||
let row_detail = test
|
||||
.get_rows()
|
||||
.await
|
||||
|
@ -47,7 +47,7 @@ async fn group_move_row_test() {
|
||||
AssertRow {
|
||||
group_index: 1,
|
||||
row_index: 1,
|
||||
row: group.rows.get(0).unwrap().clone(),
|
||||
row: group.rows.first().unwrap().clone(),
|
||||
},
|
||||
];
|
||||
test.run_scripts(scripts).await;
|
||||
@ -75,7 +75,7 @@ async fn group_move_row_to_other_group_test() {
|
||||
AssertRow {
|
||||
group_index: 2,
|
||||
row_index: 1,
|
||||
row: group.rows.get(0).unwrap().clone(),
|
||||
row: group.rows.first().unwrap().clone(),
|
||||
},
|
||||
];
|
||||
test.run_scripts(scripts).await;
|
||||
@ -104,7 +104,7 @@ async fn group_move_two_row_to_other_group_test() {
|
||||
AssertRow {
|
||||
group_index: 2,
|
||||
row_index: 1,
|
||||
row: group_1.rows.get(0).unwrap().clone(),
|
||||
row: group_1.rows.first().unwrap().clone(),
|
||||
},
|
||||
];
|
||||
test.run_scripts(scripts).await;
|
||||
@ -129,7 +129,7 @@ async fn group_move_two_row_to_other_group_test() {
|
||||
AssertRow {
|
||||
group_index: 2,
|
||||
row_index: 1,
|
||||
row: group_1.rows.get(0).unwrap().clone(),
|
||||
row: group_1.rows.first().unwrap().clone(),
|
||||
},
|
||||
];
|
||||
test.run_scripts(scripts).await;
|
||||
@ -150,7 +150,7 @@ async fn group_move_row_to_other_group_and_reorder_from_up_to_down_test() {
|
||||
AssertRow {
|
||||
group_index: 2,
|
||||
row_index: 1,
|
||||
row: group_1.rows.get(0).unwrap().clone(),
|
||||
row: group_1.rows.first().unwrap().clone(),
|
||||
},
|
||||
];
|
||||
test.run_scripts(scripts).await;
|
||||
@ -165,7 +165,7 @@ async fn group_move_row_to_other_group_and_reorder_from_up_to_down_test() {
|
||||
AssertRow {
|
||||
group_index: 2,
|
||||
row_index: 2,
|
||||
row: group_2.rows.get(0).unwrap().clone(),
|
||||
row: group_2.rows.first().unwrap().clone(),
|
||||
},
|
||||
];
|
||||
test.run_scripts(scripts).await;
|
||||
|
@ -118,7 +118,7 @@ pub fn make_test_board() -> DatabaseData {
|
||||
// let option1 = SelectOption::with_color(FIRST_THING, SelectOptionColor::Purple);
|
||||
// let option2 = SelectOption::with_color(SECOND_THING, SelectOptionColor::Orange);
|
||||
// let option3 = SelectOption::with_color(THIRD_THING, SelectOptionColor::Yellow);
|
||||
let type_option = ChecklistTypeOption::default();
|
||||
let type_option = ChecklistTypeOption;
|
||||
// type_option.options.extend(vec![option1, option2, option3]);
|
||||
let checklist_field = FieldBuilder::new(field_type, type_option)
|
||||
.name("TODO")
|
||||
|
@ -120,7 +120,7 @@ pub fn make_test_grid() -> DatabaseData {
|
||||
// let option1 = SelectOption::with_color(FIRST_THING, SelectOptionColor::Purple);
|
||||
// let option2 = SelectOption::with_color(SECOND_THING, SelectOptionColor::Orange);
|
||||
// let option3 = SelectOption::with_color(THIRD_THING, SelectOptionColor::Yellow);
|
||||
let type_option = ChecklistTypeOption::default();
|
||||
let type_option = ChecklistTypeOption;
|
||||
// type_option.options.extend(vec![option1, option2, option3]);
|
||||
let checklist_field = FieldBuilder::new(field_type, type_option)
|
||||
.name("TODO")
|
||||
|
Reference in New Issue
Block a user