mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
Merge pull request #723 from Poly-Pixel/rust-lint-syntax-fix
Fix YAML syntax in rust_lint workflow
This commit is contained in:
commit
235107e298
12
.github/workflows/rust_lint.yml
vendored
12
.github/workflows/rust_lint.yml
vendored
@ -17,9 +17,13 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: 'stable-2022-01-20'
|
||||
override: true
|
||||
with:
|
||||
toolchain: 'stable-2022-01-20'
|
||||
override: true
|
||||
- uses: subosito/flutter-action@v1
|
||||
with:
|
||||
flutter-version: '3.0.0'
|
||||
channel: "stable"
|
||||
|
||||
- name: Rust Deps
|
||||
working-directory: frontend
|
||||
@ -40,7 +44,7 @@ jobs:
|
||||
|
||||
|
||||
- run: rustup component add clippy
|
||||
working-directory: frontend/rust-lib
|
||||
working-directory: frontend/rust-lib
|
||||
- name: clippy
|
||||
run: cargo clippy --no-default-features
|
||||
working-directory: frontend/rust-lib
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
use flowy_derive::ProtoBuf;
|
||||
use flowy_error::ErrorCode;
|
||||
use flowy_grid_data_model::parser::NotEmptyStr;
|
||||
@ -21,7 +20,6 @@ pub struct CreateSelectOptionParams {
|
||||
pub field_id: String,
|
||||
pub grid_id: String,
|
||||
pub option_name: String,
|
||||
|
||||
}
|
||||
|
||||
impl TryInto<CreateSelectOptionParams> for CreateSelectOptionPayloadPB {
|
||||
|
@ -155,8 +155,6 @@ pub struct GetEditFieldContextPayloadPB {
|
||||
pub field_type: FieldType,
|
||||
}
|
||||
|
||||
|
||||
|
||||
#[derive(Debug, Default, ProtoBuf)]
|
||||
pub struct CreateFieldPayloadPB {
|
||||
#[pb(index = 1)]
|
||||
@ -192,8 +190,6 @@ impl TryInto<CreateFieldParams> for CreateFieldPayloadPB {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#[derive(Debug, Default, ProtoBuf)]
|
||||
pub struct EditFieldPayloadPB {
|
||||
#[pb(index = 1)]
|
||||
@ -241,7 +237,6 @@ pub struct GridFieldTypeOptionIdPB {
|
||||
pub field_type: FieldType,
|
||||
}
|
||||
|
||||
|
||||
pub struct GridFieldTypeOptionIdParams {
|
||||
pub grid_id: String,
|
||||
pub field_id: String,
|
||||
@ -619,7 +614,6 @@ pub struct DuplicateFieldPayloadPB {
|
||||
pub grid_id: String,
|
||||
}
|
||||
|
||||
|
||||
#[derive(Debug, Clone, Default, ProtoBuf)]
|
||||
pub struct GridFieldIdentifierPayloadPB {
|
||||
#[pb(index = 1)]
|
||||
@ -668,5 +662,3 @@ pub struct GridFieldIdParams {
|
||||
pub field_id: String,
|
||||
pub grid_id: String,
|
||||
}
|
||||
|
||||
|
||||
|
@ -2,7 +2,6 @@ use flowy_derive::ProtoBuf;
|
||||
use flowy_error::ErrorCode;
|
||||
use flowy_grid_data_model::parser::NotEmptyStr;
|
||||
|
||||
|
||||
#[derive(Debug, Default, Clone, ProtoBuf)]
|
||||
pub struct GridRowIdPB {
|
||||
#[pb(index = 1)]
|
||||
|
@ -1,5 +1,5 @@
|
||||
use crate::entities::CellChangesetPB;
|
||||
use crate::entities::{GridCellIdParams, GridCellIdPB};
|
||||
use crate::entities::{GridCellIdPB, GridCellIdParams};
|
||||
use crate::services::cell::{CellBytesParser, FromCellChangeset, FromCellString};
|
||||
use bytes::Bytes;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
use crate::entities::{CellChangesetPB, GridCellIdParams, FieldType, GridCellIdPB};
|
||||
use crate::entities::{CellChangesetPB, FieldType, GridCellIdPB, GridCellIdParams};
|
||||
use crate::services::cell::{CellBytes, CellBytesParser, CellData, CellDisplayable, FromCellChangeset, FromCellString};
|
||||
use crate::services::field::{MultiSelectTypeOption, SingleSelectTypeOptionPB};
|
||||
use bytes::Bytes;
|
||||
|
@ -2,7 +2,7 @@ use crate::grid::block_test::script::RowScript::{AssertCell, CreateRow};
|
||||
use crate::grid::block_test::util::GridRowTestBuilder;
|
||||
use crate::grid::grid_editor::GridEditorTest;
|
||||
|
||||
use flowy_grid::entities::{GridCellIdParams, FieldType, GridRowPB};
|
||||
use flowy_grid::entities::{FieldType, GridCellIdParams, GridRowPB};
|
||||
use flowy_grid::services::field::*;
|
||||
use flowy_grid_data_model::revision::{
|
||||
GridBlockMetaRevision, GridBlockMetaRevisionChangeset, RowMetaChangeset, RowRevision,
|
||||
|
Loading…
Reference in New Issue
Block a user