Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy committed Jan 30, 2024
1 parent 67f28dd commit 16bbd24
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::entities::{CalculationType, FieldType};
use crate::services::cell::CellDataDecoder;

use crate::services::field::TypeOptionCellExt;
use collab_database::fields::Field;
use collab_database::rows::RowCell;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ pub trait CellDataDecoder: TypeOption {
/// Same as [CellDataDecoder::stringify_cell_data] but the input parameter is the [Cell]
fn stringify_cell(&self, cell: &Cell) -> String;

// Decode the cell into f64
// Different field type has different way to decode the cell data into f64
fn numeric_cell(&self, cell: &Cell) -> Option<f64>;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ use flowy_error::{internal_error, ErrorCode, FlowyResult};

use crate::entities::{FieldType, SelectOptionCellDataPB};
use crate::services::cell::{
CellDataChangeset, CellDataDecoder, CellProtobufBlobParser, DecodedCellData, FromCellChangeset,
CellDataDecoder, CellProtobufBlobParser, DecodedCellData, FromCellChangeset,
ToCellChangeset,
};
use crate::services::field::selection_type_option::type_option_transform::SelectOptionTypeOptionTransformHelper;
use crate::services::field::{
make_selected_options, CheckboxCellData, MultiSelectTypeOption, SelectOption,
SelectOptionCellData, SelectOptionColor, SelectOptionIds, SingleSelectTypeOption, TypeOption,
TypeOptionCellDataCompare, TypeOptionCellDataFilter, TypeOptionCellDataSerde,
SelectOptionCellData, SelectOptionColor, SelectOptionIds, SingleSelectTypeOption, TypeOption, TypeOptionCellDataSerde,
TypeOptionTransform, SELECTION_IDS_SEPARATOR,
};

Expand Down

0 comments on commit 16bbd24

Please sign in to comment.